Add a new flag - HAL_DEBUG_UNMASKABLE - which always logs a debug message

(when debug is enabled) no matter what.
This commit is contained in:
Adrian Chadd 2011-05-11 13:22:41 +00:00
parent 5645b9a093
commit 46dde1e6fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221776
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@ enum {
HAL_DEBUG_DFS = 0x00200000, /* DFS debugging */
HAL_DEBUG_HANG = 0x00400000, /* BB/MAC hang debugging */
HAL_DEBUG_UNMASKABLE = 0xf0000000, /* always printed */
HAL_DEBUG_ANY = 0xffffffff
};
#endif /* _ATH_AH_DEBUG_H_ */

View File

@ -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);