opengnsys_ipxe/src
Michael Brown e2c0a20d60 [debug] Allow per-object runtime enabling/disabling of debug messages
The DBG_ENABLE() and DBG_DISABLE() macros currently affect the debug
level of all objects that were built with debugging enabled.  This is
undesirable, since it is common to use different debug levels in each
object.

Make the debug level mask a per-object variable.  DBG_ENABLE() and
DBG_DISABLE() now control only the debug level for the containing
object (which is consistent with the intended usage across the
existing codebase).  DBG_ENABLE_OBJECT() and DBG_DISABLE_OBJECT() may
be used to control the debug level for a specified object.  For
example:

  // Enable DBG() messages from tcpip.c
  DBG_ENABLE_OBJECT ( tcpip, DBGLVL_LOG );

Note that the existence of debug messages continues to be gated by the
DEBUG=... list specified on the build command line.  If an object was
built without the relevant debug level, then DBG_ENABLE_OBJECT() will
have no effect on that object at runtime (other than to explicitly
drag in the object via a symbol reference).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2016-07-05 10:27:22 +01:00
..
arch [dhcp] Automatically generate vendor class identifier string 2016-07-04 15:07:05 +01:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [cmdline] Add "ntp" command 2016-06-13 15:57:16 +01:00
core [downloader] Treat redirection failures as fatal 2016-07-04 16:20:01 +01:00
crypto [arm] Avoid instruction references to symbols defined via ".equ" 2016-05-08 00:08:48 +01:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [thunderx] Fix compilation with older versions of gcc 2016-06-22 12:07:55 +01:00
hci [cmdline] Add "ntp" command 2016-06-13 15:57:16 +01:00
image [build] Allow assembler section type character to vary by architecture 2016-03-13 11:20:53 +00:00
include [debug] Allow per-object runtime enabling/disabling of debug messages 2016-07-05 10:27:22 +01:00
interface [efi] Fix uninitialised data in HII IFR structures 2016-06-29 15:17:12 +01:00
libgcc [libgcc] Provide __divmoddi4() 2016-05-05 23:42:57 +01:00
net [iscsi] Treat redirection failures as fatal 2016-07-04 16:20:07 +01:00
scripts [efi] Centralise architecture-independent EFI Makefile and linker script 2016-03-12 21:47:13 +00:00
tests [pci] Support systems with multiple PCI root bridges 2016-06-09 09:36:28 +01:00
usr [cmdline] Add "ntp" command 2016-06-13 15:57:16 +01:00
util [build] Remove nested "my" declaration 2016-06-03 18:09:54 +01:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
Makefile [build] Remove unnecessary dependency on zlib 2016-05-02 23:09:49 +01:00
Makefile.efi [efi] Centralise architecture-independent EFI Makefile and linker script 2016-03-12 21:47:13 +00:00
Makefile.housekeeping [build] Remove unnecessary dependency on zlib 2016-05-02 23:09:49 +01:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00