From dc37b034391ab7f65c19641bbae477ba7ede2eb1 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 15 Mar 2013 16:28:08 -0500 Subject: ruby: set: corrects csprintf() call introduced by 7d95b650c9b6 --- src/mem/ruby/common/Set.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mem/ruby/common') diff --git a/src/mem/ruby/common/Set.cc b/src/mem/ruby/common/Set.cc index afa606c56..7ab03c5aa 100644 --- a/src/mem/ruby/common/Set.cc +++ b/src/mem/ruby/common/Set.cc @@ -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 << " ]"; } -- cgit v1.2.3