From 5b1da825d8f9088f33b032903a5194f99bd2e954 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 21 Jul 2004 15:44:57 -0400 Subject: [PATCH] Wrap tracing stuff in #if TRACING_ON to avoid compile error in m5.fast --HG-- extra : convert_revision : 329d810bfe282e88133ca35da62ee6dcc73a38f5 --- dev/ns_gige.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index b0b093cf4..159a4442c 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -1394,6 +1394,7 @@ NSGigE::rxKick() rxPktBytes = rxPacket->length; rxPacketBufPtr = rxPacket->data; +#if TRACING_ON if (DTRACE(Ethernet)) { if (rxPacket->isIpPkt()) { ip_header *ip = rxPacket->getIpHdr(); @@ -1406,6 +1407,7 @@ NSGigE::rxKick() } } } +#endif // sanity check - i think the driver behaves like this assert(rxDescCnt >= rxPktBytes); @@ -1594,6 +1596,7 @@ NSGigE::transmit() DPRINTF(Ethernet, "\n\nAttempt Pkt Transmit: txFifo length = %d\n", maxTxFifoSize - txFifoAvail); if (interface->sendPacket(txFifo.front())) { +#if TRACING_ON if (DTRACE(Ethernet)) { if (txFifo.front()->isIpPkt()) { ip_header *ip = txFifo.front()->getIpHdr(); @@ -1606,6 +1609,7 @@ NSGigE::transmit() } } } +#endif DDUMP(Ethernet, txFifo.front()->data, txFifo.front()->length); txBytes += txFifo.front()->length; -- 2.30.2