mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Fix the debugging code path to correctly support HAL_DEBUG_UNMASKABLE.
This commit is contained in:
parent
4f36da915f
commit
6c63a20b49
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222031
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user