summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-10-15 14:11:17 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-10-16 08:15:14 +0000
commit2111c9960078e0d61bc1b6a1788b0d9acc13e97b (patch)
treeb4f05d4ef8aebd04525f1de40abe44532c9b4177
parent761c3e0cc9bea8a667340601caf0f31432d4e65c (diff)
downloadgem5-2111c9960078e0d61bc1b6a1788b0d9acc13e97b.tar.xz
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 <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21821 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r--src/base/trace.hh2
1 files changed, 1 insertions, 1 deletions
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