aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2011-05-17 16:30:34 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2011-05-17 16:30:34 +0000
commit6c63a20b4939d86a62970f62be6e78a055da0df2 (patch)
tree8cabd20b6e7da51dfd833aeb91d75ff270c6ce4b /sys
parent4f36da915f9997be5e8a3f485705f2b06d9c4f4f (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/ah_osdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ath/ah_osdep.c b/sys/dev/ath/ah_osdep.c
index 090b690943c7..b14bba037e5b 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