summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-03-15 16:28:08 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2013-03-15 16:28:08 -0500
commitdc37b034391ab7f65c19641bbae477ba7ede2eb1 (patch)
treefe3be17669246a2656b1b360eabbc4233e460b87 /src
parent9544e8fbe0c47d5d4e62b2b8cbbcfb4f1a212037 (diff)
downloadgem5-dc37b034391ab7f65c19641bbae477ba7ede2eb1.tar.xz
ruby: set: corrects csprintf() call introduced by 7d95b650c9b6
Diffstat (limited to 'src')
-rw-r--r--src/mem/ruby/common/Set.cc4
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 << " ]";
}