summaryrefslogtreecommitdiff
path: root/src/base/cprintf.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-03-12 20:16:13 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-03-12 20:16:13 -0400
commit74db8adfbc5e136b55d2f5ea54d49f67b15d7fea (patch)
tree89fbbeda1ef24d36a1c8475ef99869cbd52f9a5b /src/base/cprintf.hh
parent8d38dd32311468254c0839ae8f0797f3f824df05 (diff)
downloadgem5-74db8adfbc5e136b55d2f5ea54d49f67b15d7fea.tar.xz
call ccprintf() with the appropriate argument types so we don't recuse forever
--HG-- extra : convert_revision : 5366be897d1193cf9e93b1fcd0689d19783f73a8
Diffstat (limited to 'src/base/cprintf.hh')
-rw-r--r--src/base/cprintf.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/cprintf.hh b/src/base/cprintf.hh
index 7f8e33367..cff73a228 100644
--- a/src/base/cprintf.hh
+++ b/src/base/cprintf.hh
@@ -143,20 +143,20 @@ ccprintf(std::ostream &stream, const std::string &format,
inline void
ccprintf(std::ostream &stream, const std::string &format, CPRINTF_DECLARATION)
{
- ccprintf(stream, format, VARARGS_ALLARGS);
+ ccprintf(stream, format.c_str(), VARARGS_ALLARGS);
}
inline void
cprintf(const std::string &format, CPRINTF_DECLARATION)
{
- ccprintf(std::cout, format, VARARGS_ALLARGS);
+ ccprintf(std::cout, format.c_str(), VARARGS_ALLARGS);
}
inline std::string
csprintf(const std::string &format, CPRINTF_DECLARATION)
{
std::stringstream stream;
- ccprintf(stream, format, VARARGS_ALLARGS);
+ ccprintf(stream, format.c_str(), VARARGS_ALLARGS);
return stream.str();
}