diff options
author | Nathan Binkert <nate@binkert.org> | 2008-10-02 11:26:59 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-10-02 11:26:59 -0700 |
commit | 67a2918abc057f8f6d693d8acadd70bf9337cf44 (patch) | |
tree | 3bc54653f1928d2a0c64f18cc3b4a6e8097ce84e | |
parent | 0a1613abe1d5ec9353001d68d6bb44bc64d97244 (diff) | |
download | gem5-67a2918abc057f8f6d693d8acadd70bf9337cf44.tar.xz |
stats: Fix small bug pointed out by unit testing.
-rw-r--r-- | src/base/statistics.hh | 3 |
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); } }; |