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:
parent
5645b9a093
commit
46dde1e6fa
@ -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_ */
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user