diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-13 15:03:34 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-13 15:03:34 -0400 |
commit | ff90b8c1aa99711eeb55c5eba29519f77cbc041c (patch) | |
tree | 625d8574e483b01552f9d819321807ea4c9853ed /src/base/cprintf.hh | |
parent | 0d0e18a0653f321c90ced826682a98d14bba9045 (diff) | |
parent | a068d6db0fff7056abb06bb8a99494b63bd169e1 (diff) | |
download | gem5-ff90b8c1aa99711eeb55c5eba29519f77cbc041c.tar.xz |
Merge zizzer.eecs.umich.edu:/bk/newmem
into zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace
--HG--
extra : convert_revision : 61eca737296a5ce839d3b97f047b4fda062cb899
Diffstat (limited to 'src/base/cprintf.hh')
-rw-r--r-- | src/base/cprintf.hh | 6 |
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(); } |