base: add the --debug-flag to DPRINTF output with FmtFlag
authorCiro Santilli <ciro.santilli@arm.com>
Tue, 8 Oct 2019 13:31:47 +0000 (14:31 +0100)
committerCiro Santilli <ciro.santilli@arm.com>
Tue, 26 Nov 2019 12:46:59 +0000 (12:46 +0000)
commit105b2c8914946867f040caf6a8ff7da3c5d028d7
tree63ed34a98e44bfeb7d5a10820f7fc2002a0fdef8
parente82a6f32cb3432566bbe9f00bc93e3b14f8db998
base: add the --debug-flag to DPRINTF output with FmtFlag

This makes it easier to determine which messages come from which
flags when enabling multiple flags at once.

This commit covers the bulk of the debug messages, which use the DPRINTF*
family of macros. There however macros that use DTRACE to check for
enable, those will be covered in future patches.

Change-Id: I6738b18f08ccfd1e11f2874b426c1827b42e82a2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22004
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/SConscript
src/base/trace.cc
src/base/trace.hh
util/systemc/gem5_within_systemc/sc_logger.cc
util/systemc/gem5_within_systemc/sc_logger.hh