diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/SConscript | 1 | ||||
-rw-r--r-- | src/base/trace.cc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/base/SConscript b/src/base/SConscript index 5bf0633a9..548fda7e3 100644 --- a/src/base/SConscript +++ b/src/base/SConscript @@ -112,6 +112,7 @@ DebugFlag('Annotate', "State machine annotation debugging") DebugFlag('AnnotateQ', "State machine annotation queue debugging") DebugFlag('AnnotateVerbose', "Dump all state machine annotation details") DebugFlag('FmtFlag', "Show the --debug-flag that enabled each debug message") +DebugFlag('FmtTicksOff', "Don't show tick count on debug messages") DebugFlag('GDBAcc', "Remote debugger accesses") DebugFlag('GDBExtra', "Dump extra information on reads and writes") DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") diff --git a/src/base/trace.cc b/src/base/trace.cc index c7f338bf5..6b18787c2 100644 --- a/src/base/trace.cc +++ b/src/base/trace.cc @@ -46,6 +46,7 @@ #include "base/output.hh" #include "base/str.hh" #include "debug/FmtFlag.hh" +#include "debug/FmtTicksOff.hh" const std::string &name() { @@ -150,7 +151,7 @@ OstreamLogger::logMessage(Tick when, const std::string &name, if (!name.empty() && ignore.match(name)) return; - if (when != MaxTick) + if (!DTRACE(FmtTicksOff) && (when != MaxTick)) ccprintf(stream, "%7d: ", when); if (DTRACE(FmtFlag) && !flag.empty()) |