diff options
Diffstat (limited to 'base/trace.hh')
-rw-r--r-- | base/trace.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/base/trace.hh b/base/trace.hh index b363bec94..1aadb36cf 100644 --- a/base/trace.hh +++ b/base/trace.hh @@ -32,6 +32,7 @@ #include <vector> #include "base/cprintf.hh" +#include "base/match.hh" #include "sim/host.hh" #include "sim/universe.hh" @@ -137,16 +138,13 @@ namespace Trace { extern Log theLog; - extern int dprintf_ignore_size; - - bool - dprintf_ignore_name(const std::string &name); + extern ObjectMatch ignore; inline void dprintf(const char *format, cp::ArgList &args, Tick cycle, const std::string &name) { - if (!dprintf_ignore_size || name.empty() || !dprintf_ignore_name(name)) + if (name.empty() || !ignore.match(name)) theLog.append(new Trace::PrintfRecord(format, args, cycle, name)); } |