From: Giacomo Travaglini Date: Tue, 15 Oct 2019 13:11:17 +0000 (+0100) Subject: base: Using scoped string in DPRINTFNR X-Git-Tag: v19.0.0.0~438 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2111c9960078e0d61bc1b6a1788b0d9acc13e97b;p=gem5.git base: Using scoped string in DPRINTFNR We would otherwise need to add a using namespace std wherever we use DPRINTFNR. Change-Id: I30bf9ba474408133abded66141f6dc96dfdba8d6 Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21821 Reviewed-by: Jason Lowe-Power Reviewed-by: Bobby R. Bruce Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/base/trace.hh b/src/base/trace.hh index ee8737243..4af413321 100644 --- a/src/base/trace.hh +++ b/src/base/trace.hh @@ -205,7 +205,7 @@ class Named } while (0) #define DPRINTFNR(...) do { \ - Trace::getDebugLogger()->dprintf((Tick)-1, string(), __VA_ARGS__); \ + Trace::getDebugLogger()->dprintf((Tick)-1, std::string(), __VA_ARGS__); \ } while (0) #else // !TRACING_ON