From: Nilay Vaish Date: Fri, 15 Mar 2013 21:28:08 +0000 (-0500) Subject: ruby: set: corrects csprintf() call introduced by 7d95b650c9b6 X-Git-Tag: stable_2013_06_16~57 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc37b034391ab7f65c19641bbae477ba7ede2eb1;p=gem5.git ruby: set: corrects csprintf() call introduced by 7d95b650c9b6 --- 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 << " ]"; }