Fixed EoE debugging.
authorFlorian Pose <fp@igh-essen.com>
Tue, 08 Aug 2006 13:06:02 +0000
changeset 340 5a5f5a14c847
parent 339 a3a4ee854bd8
child 341 f8aa65e05ff4
Fixed EoE debugging.
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)