# HG changeset patch # User Florian Pose # Date 1155042362 0 # Node ID 5a5f5a14c847d7b553c8f45a3fda8b48f8037f47 # Parent a3a4ee854bd8432b7f041c532dad5b7ae1996e0a Fixed EoE debugging. diff -r a3a4ee854bd8 -r 5a5f5a14c847 master/ethernet.c --- 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)