diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-03-02 04:00:37 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-03-02 04:00:37 -0500 |
commit | 987de4f5ccc5639ca03cc3c90e48bc06b5429823 (patch) | |
tree | 1cb802979c420ae38c0471ba646097f163c407dd /src/mem/cache/cache_impl.hh | |
parent | f26a28929583f2ed7fb55521e49c3f9bef557c05 (diff) | |
download | gem5-987de4f5ccc5639ca03cc3c90e48bc06b5429823.tar.xz |
mem: Tidy up the cache debug messages
Avoid redundant inclusion of the name in the DPRINTF string.
Diffstat (limited to 'src/mem/cache/cache_impl.hh')
-rw-r--r-- | src/mem/cache/cache_impl.hh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 803b3bad8..32eae66d9 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -261,8 +261,7 @@ Cache<TagStore>::markInService(MSHR *mshr, bool pending_dirty_resp) markInServiceInternal(mshr, pending_dirty_resp); #if 0 if (mshr->originalCmd == MemCmd::HardPFReq) { - DPRINTF(HWPrefetch, "%s:Marking a HW_PF in service\n", - name()); + DPRINTF(HWPrefetch, "Marking a HW_PF in service\n"); //Also clear pending if need be if (!prefetcher->havePending()) { @@ -324,10 +323,10 @@ Cache<TagStore>::access(PacketPtr pkt, BlkType *&blk, // that can modify its value. blk = tags->accessBlock(pkt->getAddr(), pkt->isSecure(), lat, id); - DPRINTF(Cache, "%s%s %x (%s) %s %s\n", pkt->cmdString(), + DPRINTF(Cache, "%s%s %x (%s) %s\n", pkt->cmdString(), pkt->req->isInstFetch() ? " (ifetch)" : "", pkt->getAddr(), pkt->isSecure() ? "s" : "ns", - blk ? "hit" : "miss", blk ? blk->print() : ""); + blk ? "hit " + blk->print() : "miss"); // Writeback handling is special case. We can write the block into // the cache without having a writeable copy (or any copy at all). |