base: Using scoped string in DPRINTFNR
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 15 Oct 2019 13:11:17 +0000 (14:11 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 16 Oct 2019 08:15:14 +0000 (08:15 +0000)
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>
src/base/trace.hh

index ee8737243e5cf5b0cf1e90ba649e30389b30a922..4af413321e1ad8542c030f079f9f8344ce356241 100644 (file)
@@ -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