Wrap tracing stuff in #if TRACING_ON to avoid compile error
authorNathan Binkert <binkertn@umich.edu>
Wed, 21 Jul 2004 19:44:57 +0000 (15:44 -0400)
committerNathan Binkert <binkertn@umich.edu>
Wed, 21 Jul 2004 19:44:57 +0000 (15:44 -0400)
in m5.fast

--HG--
extra : convert_revision : 329d810bfe282e88133ca35da62ee6dcc73a38f5

dev/ns_gige.cc

index b0b093cf487db33f8a8beb9ec1d0e99d1e77eb77..159a4442c708ade587475e7ce0bdcb2f59f5be26 100644 (file)
@@ -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;