summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ah_internal.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-05-11 13:22:41 +0000
committeradrian <adrian@FreeBSD.org>2011-05-11 13:22:41 +0000
commitb410b114e0e2ea173de31f4f2cfa8dd26ab84e9f (patch)
tree70f8a3a38e06c0947132db3743c5c0ce905f5a81 /sys/dev/ath/ath_hal/ah_internal.h
parent1f0e7d70a64ea982e9a7814bfa9e32b6cf9d189b (diff)
downloadFreeBSD-src-b410b114e0e2ea173de31f4f2cfa8dd26ab84e9f.zip
FreeBSD-src-b410b114e0e2ea173de31f4f2cfa8dd26ab84e9f.tar.gz
Add a new flag - HAL_DEBUG_UNMASKABLE - which always logs a debug message
(when debug is enabled) no matter what.
Diffstat (limited to 'sys/dev/ath/ath_hal/ah_internal.h')
-rw-r--r--sys/dev/ath/ath_hal/ah_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ah_internal.h b/sys/dev/ath/ath_hal/ah_internal.h
index 1dd8dcd..3cfc7e6 100644
--- a/sys/dev/ath/ath_hal/ah_internal.h
+++ b/sys/dev/ath/ath_hal/ah_internal.h
@@ -517,7 +517,8 @@ extern void ath_hal_free(void *);
extern int ath_hal_debug;
#define HALDEBUG(_ah, __m, ...) \
do { \
- if (ath_hal_debug & (__m)) { \
+ if ((__m) == HAL_DEBUG_UNMASKABLE || \
+ (ath_hal_debug & (__m))) { \
DO_HALDEBUG((_ah), (__m), __VA_ARGS__); \
} \
} while(0);
OpenPOWER on IntegriCloud