From b79f2de0ab1a8c94018d515d69ca986dd8e7d2e9 Mon Sep 17 00:00:00 2001 From: Florian Pose <fp@igh-essen.com> Date: Tue, 8 Aug 2006 13:06:02 +0000 Subject: [PATCH] Fixed EoE debugging. --- master/ethernet.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/master/ethernet.c b/master/ethernet.c index c56a97d6..2e84f521 100644 --- a/master/ethernet.c +++ b/master/ethernet.c @@ -243,7 +243,7 @@ int ec_eoe_send(ec_eoe_t *eoe /**< EoE handler */) #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 @@ void ec_eoe_state_rx_fetch(ec_eoe_t *eoe /**< EoE handler */) 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_rx_fetch(ec_eoe_t *eoe /**< EoE handler */) 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) -- GitLab