From 3a10b200f7d663ebc1fecc7449871a2cd356e815 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 1 Mar 2011 15:26:11 -0600 Subject: [PATCH] Ruby: Fix DPRINTF bugs in PerfectSwitch and MessageBuffer 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 | 2 +- src/mem/ruby/network/simple/PerfectSwitch.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/ruby/buffers/MessageBuffer.cc b/src/mem/ruby/buffers/MessageBuffer.cc index 793e28857..4c4db5dc3 100644 --- a/src/mem/ruby/buffers/MessageBuffer.cc +++ b/src/mem/ruby/buffers/MessageBuffer.cc @@ -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; diff --git a/src/mem/ruby/network/simple/PerfectSwitch.cc b/src/mem/ruby/network/simple/PerfectSwitch.cc index 9f197f4cd..52c9eaa87 100644 --- a/src/mem/ruby/network/simple/PerfectSwitch.cc +++ b/src/mem/ruby/network/simple/PerfectSwitch.cc @@ -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()); -- 2.30.2