diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2011-07-14 23:30:30 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2011-07-14 23:30:30 +0000 |
commit | 1292e2e98afd9d7d94f41781b16751385e6830b6 (patch) | |
tree | 1879673316ccf1abb747050bdfc68708d889991e /sys | |
parent | a4980a95b554f411527b3a380fcc800677b32301 (diff) | |
download | src-1292e2e98afd9d7d94f41781b16751385e6830b6.tar.gz src-1292e2e98afd9d7d94f41781b16751385e6830b6.zip |
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.)
Notes
Notes:
svn path=/head/; revision=224045
Diffstat (limited to 'sys')
-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 cfcfc4a23eac..cceb9a4a4c83 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); |