diff options
author | adrian <adrian@FreeBSD.org> | 2011-07-14 23:30:30 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-07-14 23:30:30 +0000 |
commit | 4dc8de26b5ea3701f5bc525dbb9939d2187129e8 (patch) | |
tree | 1879673316ccf1abb747050bdfc68708d889991e /sys/dev | |
parent | f3103cdbe24bf5f2835ae023b75f0fd8ee46b01a (diff) | |
download | FreeBSD-src-4dc8de26b5ea3701f5bc525dbb9939d2187129e8.zip FreeBSD-src-4dc8de26b5ea3701f5bc525dbb9939d2187129e8.tar.gz |
Add a missing check for the global ath_hal_debug.
This was removed accidentally when the per HAL instance
code was added, and not reverted when I added back the
global debug variable (for early chip setup debugging.)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/ah_osdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ath/ah_osdep.c b/sys/dev/ath/ah_osdep.c index cfcfc4a..cceb9a4 100644 --- a/sys/dev/ath/ah_osdep.c +++ b/sys/dev/ath/ah_osdep.c @@ -127,7 +127,9 @@ ath_hal_ether_sprintf(const u_int8_t *mac) void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) { - if ((mask == HAL_DEBUG_UNMASKABLE) || (ah->ah_config.ah_debug & mask)) { + if ((mask == HAL_DEBUG_UNMASKABLE) || + (ah->ah_config.ah_debug & mask) || + (ath_hal_debug & mask)) { __va_list ap; va_start(ap, fmt); ath_hal_vprintf(ah, fmt, ap); |