diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-15 16:28:08 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-15 16:28:08 -0500 |
commit | dc37b034391ab7f65c19641bbae477ba7ede2eb1 (patch) | |
tree | fe3be17669246a2656b1b360eabbc4233e460b87 /src | |
parent | 9544e8fbe0c47d5d4e62b2b8cbbcfb4f1a212037 (diff) | |
download | gem5-dc37b034391ab7f65c19641bbae477ba7ede2eb1.tar.xz |
ruby: set: corrects csprintf() call introduced by 7d95b650c9b6
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/ruby/common/Set.cc | 4 |
1 files changed, 1 insertions, 3 deletions
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 << " ]"; } |