diff options
author | adrian <adrian@FreeBSD.org> | 2011-05-11 13:22:41 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-05-11 13:22:41 +0000 |
commit | b410b114e0e2ea173de31f4f2cfa8dd26ab84e9f (patch) | |
tree | 70f8a3a38e06c0947132db3743c5c0ce905f5a81 /sys/dev/ath/ath_hal/ah_internal.h | |
parent | 1f0e7d70a64ea982e9a7814bfa9e32b6cf9d189b (diff) | |
download | FreeBSD-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.h | 3 |
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); |