From: Nathan Binkert Date: Thu, 2 Oct 2008 18:26:59 +0000 (-0700) Subject: stats: Fix small bug pointed out by unit testing. X-Git-Tag: m5_2.0_beta6~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67a2918abc057f8f6d693d8acadd70bf9337cf44;p=gem5.git stats: Fix small bug pointed out by unit testing. --- 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); } };