summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-10-02 11:26:59 -0700
committerNathan Binkert <nate@binkert.org>2008-10-02 11:26:59 -0700
commit67a2918abc057f8f6d693d8acadd70bf9337cf44 (patch)
tree3bc54653f1928d2a0c64f18cc3b4a6e8097ce84e /src
parent0a1613abe1d5ec9353001d68d6bb44bc64d97244 (diff)
downloadgem5-67a2918abc057f8f6d693d8acadd70bf9337cf44.tar.xz
stats: Fix small bug pointed out by unit testing.
Diffstat (limited to 'src')
-rw-r--r--src/base/statistics.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index 17aef14b9..25017031f 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -1009,8 +1009,7 @@ class ScalarProxy
std::string
str() const
{
- return csprintf("%s[%d]", stat->str(), index);
-
+ return csprintf("%s[%d]", stat->statData()->name, index);
}
};