stats: Fix small bug pointed out by unit testing.
authorNathan Binkert <nate@binkert.org>
Thu, 2 Oct 2008 18:26:59 +0000 (11:26 -0700)
committerNathan Binkert <nate@binkert.org>
Thu, 2 Oct 2008 18:26:59 +0000 (11:26 -0700)
src/base/statistics.hh

index 17aef14b9fe1845046a82703424bece058915e7f..25017031fadfea3b1e07fb8a60d9ededb86f45c0 100644 (file)
@@ -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);
     }
 };