From 51e54f519dddf902ffdfc90115e98a440c343c02 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Tue, 6 Feb 2007 21:53:05 -0800 Subject: [PATCH] Minor DPRINTF fixes. --HG-- extra : convert_revision : 41956c9a480163ecac7807982215027e8ff1a4a9 --- src/mem/bus.cc | 3 ++- src/mem/bus.hh | 2 ++ src/mem/cache/base_cache.cc | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mem/bus.cc b/src/mem/bus.cc index bd721dd68..2d7f20ae6 100644 --- a/src/mem/bus.cc +++ b/src/mem/bus.cc @@ -197,7 +197,8 @@ Bus::recvTiming(PacketPtr pkt) // Packet was successfully sent. Return true. // Also take care of retries if (inRetry) { - DPRINTF(Bus, "Remove retry from list %i\n", retryList.front()); + DPRINTF(Bus, "Remove retry from list %d\n", + retryList.front()->getId()); retryList.front()->onRetryList(false); retryList.pop_front(); inRetry = false; diff --git a/src/mem/bus.hh b/src/mem/bus.hh index 0ad4aad60..350a67b43 100644 --- a/src/mem/bus.hh +++ b/src/mem/bus.hh @@ -156,6 +156,8 @@ class Bus : public MemObject void onRetryList(bool newVal) { _onRetryList = newVal; } + int getId() { return id; } + protected: /** When reciving a timing request from the peer port (at id), diff --git a/src/mem/cache/base_cache.cc b/src/mem/cache/base_cache.cc index d9e6c5e1f..ace46d752 100644 --- a/src/mem/cache/base_cache.cc +++ b/src/mem/cache/base_cache.cc @@ -356,7 +356,7 @@ BaseCache::CacheEvent::process() const char * BaseCache::CacheEvent::description() { - return "timing event\n"; + return "BaseCache timing event"; } void -- 2.30.2