diff options
author | adrian <adrian@FreeBSD.org> | 2011-05-17 16:30:34 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-05-17 16:30:34 +0000 |
commit | fa1f34db8909b7e4a5ed110c2ba68acefd4542cc (patch) | |
tree | 8cabd20b6e7da51dfd833aeb91d75ff270c6ce4b /sys/dev/ath/ah_osdep.c | |
parent | dd891455b5dab960e935f16c355eba415f62f08c (diff) | |
download | FreeBSD-src-fa1f34db8909b7e4a5ed110c2ba68acefd4542cc.zip FreeBSD-src-fa1f34db8909b7e4a5ed110c2ba68acefd4542cc.tar.gz |
Fix the debugging code path to correctly support HAL_DEBUG_UNMASKABLE.
Diffstat (limited to 'sys/dev/ath/ah_osdep.c')
-rw-r--r-- | sys/dev/ath/ah_osdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ath/ah_osdep.c b/sys/dev/ath/ah_osdep.c index 090b690..b14bba0 100644 --- a/sys/dev/ath/ah_osdep.c +++ b/sys/dev/ath/ah_osdep.c @@ -140,16 +140,20 @@ ath_hal_ether_sprintf(const u_int8_t *mac) } #ifdef AH_DEBUG + +/* This must match the definition in ath_hal/ah_debug.h */ +#define HAL_DEBUG_UNMASKABLE 0xf0000000 void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) { - if (ath_hal_debug & mask) { + if ((mask == HAL_DEBUG_UNMASKABLE) || (ath_hal_debug & mask)) { __va_list ap; va_start(ap, fmt); ath_hal_vprintf(ah, fmt, ap); va_end(ap); } } +#undef HAL_DEBUG_UNMASKABLE #endif /* AH_DEBUG */ #ifdef AH_DEBUG_ALQ |