From: Steve Reinhardt Date: Wed, 7 Feb 2007 05:53:05 +0000 (-0800) Subject: Minor DPRINTF fixes. X-Git-Tag: m5_2.0_beta3~219 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51e54f519dddf902ffdfc90115e98a440c343c02;p=gem5.git Minor DPRINTF fixes. --HG-- extra : convert_revision : 41956c9a480163ecac7807982215027e8ff1a4a9 --- 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