stats: Fix small bug pointed out by unit testing.

This commit is contained in:
Nathan Binkert 2008-10-02 11:26:59 -07:00
parent 0a1613abe1
commit 67a2918abc

View 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);
}
};