Fixed EoE debugging.
--- a/master/ethernet.c Tue Aug 08 12:07:25 2006 +0000
+++ b/master/ethernet.c Tue Aug 08 13:06:02 2006 +0000
@@ -243,7 +243,7 @@
#if EOE_DEBUG_LEVEL > 1
EC_DBG("");
for (i = 0; i < current_size; i++) {
- printk("%02X ", frame->skb->data[eoe->tx_offset + i]);
+ printk("%02X ", eoe->tx_frame->skb->data[eoe->tx_offset + i]);
if ((i + 1) % 16 == 0) {
printk("\n");
EC_DBG("");
@@ -368,6 +368,9 @@
uint8_t *data, frame_type, last_fragment, time_appended;
uint8_t frame_number, fragment_offset, fragment_number;
off_t offset;
+#if EOE_DEBUG_LEVEL > 1
+ unsigned int i;
+#endif
if (eoe->datagram.state != EC_DATAGRAM_RECEIVED) {
eoe->stats.rx_errors++;
@@ -509,7 +512,7 @@
void ec_eoe_state_tx_start(ec_eoe_t *eoe /**< EoE handler */)
{
#if EOE_DEBUG_LEVEL > 0
- unsigned int wakeup;
+ unsigned int wakeup = 0;
#endif
if (!eoe->slave->online || !eoe->slave->master->device->link_state)