]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Remove unnecessary constraint on DBG_ENABLE()/DBG_DISABLE()
authorMichael Brown <mcb30@ipxe.org>
Sat, 11 Sep 2010 12:05:40 +0000 (13:05 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 12 Sep 2010 21:24:06 +0000 (22:24 +0100)
commit79dd00bb3a799b39c9e6202d9f4daf6cef4c28cd
tree0a88248960e29375e578ec05bb1d6c7a18e74af1
parent97eda5be0df168866f1b10f9e05ae771af702462
[build] Remove unnecessary constraint on DBG_ENABLE()/DBG_DISABLE()

DBG_ENABLE() and DBG_DISABLE() are currently constrained to enabling
and disabling only debug levels that are compiled in for the current
object.  For example, a DBG_ENABLE(DBGLVL_EXTRA) in foo.c will not be
able to affect output from other objects at DBGLVL_EXTRA unless foo.c
is itself compiled with DBGLVL_EXTRA enabled.

Partially fix by removing this unnecessary constraint.  (Note that it
is still necessary for at least one debug level to be compiled in for
the object invoking DBG_ENABLE()/DBG_DISABLE().)

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/compiler.h