From: Nathan Binkert Date: Wed, 21 Jul 2004 19:44:57 +0000 (-0400) Subject: Wrap tracing stuff in #if TRACING_ON to avoid compile error X-Git-Tag: m5_1.0_tutorial~231 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b1da825d8f9088f33b032903a5194f99bd2e954;p=gem5.git Wrap tracing stuff in #if TRACING_ON to avoid compile error in m5.fast --HG-- extra : convert_revision : 329d810bfe282e88133ca35da62ee6dcc73a38f5 --- 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;