misc: Collapse all uses of DTRACE(x) to Debug::x.
Also mark the DTRACE macro as deprecated. Change-Id: I99d9a9544b539117b375186e3e425d73d3c5cab7 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45009 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Gabe Black <gabe.black@gmail.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
This commit is contained in:
@@ -148,10 +148,10 @@ OstreamLogger::logMessage(Tick when, const std::string &name,
|
||||
if (!name.empty() && ignore.match(name))
|
||||
return;
|
||||
|
||||
if (!DTRACE(FmtTicksOff) && (when != MaxTick))
|
||||
if (!Debug::FmtTicksOff && (when != MaxTick))
|
||||
ccprintf(stream, "%7d: ", when);
|
||||
|
||||
if (DTRACE(FmtFlag) && !flag.empty())
|
||||
if (Debug::FmtFlag && !flag.empty())
|
||||
stream << flag << ": ";
|
||||
|
||||
if (!name.empty())
|
||||
@@ -160,7 +160,7 @@ OstreamLogger::logMessage(Tick when, const std::string &name,
|
||||
stream << message;
|
||||
stream.flush();
|
||||
|
||||
if (DTRACE(FmtStackTrace)) {
|
||||
if (Debug::FmtStackTrace) {
|
||||
print_backtrace();
|
||||
STATIC_ERR("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user