diff --git a/src/base/stats/info.cc b/src/base/stats/info.cc index 06e7ec977d..8779cf0081 100644 --- a/src/base/stats/info.cc +++ b/src/base/stats/info.cc @@ -172,13 +172,11 @@ bool Info::baseCheck() const { if (!(flags & statistics::init)) { -#ifdef DEBUG - cprintf("this is stat number %d\n", id); -#endif - panic("Not all stats have been initialized.\n" + panic("this is stat number %d\n" + "Not all stats have been initialized.\n" "You may need to add ::regStats() to a" " new SimObject's regStats() function. Name: %s", - name); + id, name); return false; }