Ruby: Fix DPRINTF bugs in PerfectSwitch and MessageBuffer
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 1 Mar 2011 21:26:11 +0000 (15:26 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 1 Mar 2011 21:26:11 +0000 (15:26 -0600)
At a couple of places in PerfectSwitch.cc and MessageBuffer.cc, DPRINTF()
has not been provided with correct number of arguments. The patch fixes these
bugs.

src/mem/ruby/buffers/MessageBuffer.cc
src/mem/ruby/network/simple/PerfectSwitch.cc

index 793e28857dc0cbce0685ede81640a8269cdb0d79..4c4db5dc36101b44ee0e940a7a90004b92c9a514 100644 (file)
@@ -380,7 +380,7 @@ MessageBuffer::reanalyzeAllMessages()
 void
 MessageBuffer::stallMessage(const Address& addr)
 {
-    DPRINTF(RubyQueue, "Stalling %s\n");
+    DPRINTF(RubyQueue, "Stalling due to %s\n", addr);
     assert(isReady());
     assert(addr.getOffset() == 0);
     MsgPtr message = m_prio_heap.front().m_msgptr;
index 9f197f4cd2982bb75b4078c5a2cedb2b70a7e085..52c9eaa8781fe39249d0dcbb5f360af542157c9e 100644 (file)
@@ -300,7 +300,7 @@ PerfectSwitch::wakeup()
                             output_link_destinations[i];
 
                         // Enqeue msg
-                        DPRINTF(RubyNetwork, "%d enqueuing net msg from "
+                        DPRINTF(RubyNetwork, "Enqueuing net msg from "
                                 "inport[%d][%d] to outport [%d][%d] time: %lld.\n",
                                 incoming, vnet, outgoing, vnet,
                                 g_eventQueue_ptr->getTime());