From 67a2918abc057f8f6d693d8acadd70bf9337cf44 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 2 Oct 2008 11:26:59 -0700 Subject: [PATCH] stats: Fix small bug pointed out by unit testing. --- src/base/statistics.hh | 3 +-- 1 file changed, 1 insertion(+), 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); } }; -- 2.30.2