From: Ali Saidi Date: Tue, 13 Mar 2007 00:16:13 +0000 (-0400) Subject: call ccprintf() with the appropriate argument types so we don't recuse forever X-Git-Tag: m5_2.0_beta3~98^2~3^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74db8adfbc5e136b55d2f5ea54d49f67b15d7fea;p=gem5.git call ccprintf() with the appropriate argument types so we don't recuse forever --HG-- extra : convert_revision : 5366be897d1193cf9e93b1fcd0689d19783f73a8 --- 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(); }