ruby: set: corrects csprintf() call introduced by 7d95b650c9b6
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 15 Mar 2013 21:28:08 +0000 (16:28 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 15 Mar 2013 21:28:08 +0000 (16:28 -0500)
src/mem/ruby/common/Set.cc

index afa606c56289a64ce1143e15872e908f3e60a003..7ab03c5aa626947cb5f4135e123de9584abf75e9 100644 (file)
@@ -351,11 +351,9 @@ Set::print(std::ostream& out) const
         return;
     }
 
-    char buff[24];
     out << "[Set (" << m_nSize << ")";
     for (int i = m_nArrayLen - 1; i >= 0; i--) {
-        csprintf(buff," 0x%08X", m_p_nArray[i]);
-        out << buff;
+        out << csprintf(" 0x%08X", m_p_nArray[i]);
     }
     out << " ]";
 }