diff options
| author | Michael Brown | 2008-10-01 19:58:21 +0200 |
|---|---|---|
| committer | Michael Brown | 2008-10-01 20:24:56 +0200 |
| commit | afe1323c76c84c5c5bf50ef8fb7aa593fe2ca2e0 (patch) | |
| tree | e9c5b5ed4a8b736f9ff343dcd3f6a235985c4179 /src/drivers/bitbash | |
| parent | [compiler] Add __always_inline macro (diff) | |
| download | ipxe-afe1323c76c84c5c5bf50ef8fb7aa593fe2ca2e0.tar.gz ipxe-afe1323c76c84c5c5bf50ef8fb7aa593fe2ca2e0.tar.xz ipxe-afe1323c76c84c5c5bf50ef8fb7aa593fe2ca2e0.zip | |
[compiler] Allow for selective disabling of debug levels at runtime
The usefulness of DBGLVL_IO is limited by the fact that many cards
require large numbers of uninteresting I/O reads/writes at device
probe time, typically when driving a bit-bashing I2C/SPI bus to read
the MAC address.
This patch adds the DBG_DISABLE() and DBG_ENABLE() macros, which can
be used to temporarily disable and re-enable selected debug levels.
Note that debug levels must still be enabled in the build in order to
function at all: you can't use DBG_ENABLE(DBGLVL_IO) in an object
built with DEBUG=object:1 and expect it to do anything.
Diffstat (limited to 'src/drivers/bitbash')
0 files changed, 0 insertions, 0 deletions
