svn commit: r222031 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Tue May 17 16:30:34 UTC 2011


Author: adrian
Date: Tue May 17 16:30:34 2011
New Revision: 222031
URL: http://svn.freebsd.org/changeset/base/222031

Log:
  Fix the debugging code path to correctly support HAL_DEBUG_UNMASKABLE.

Modified:
  head/sys/dev/ath/ah_osdep.c

Modified: head/sys/dev/ath/ah_osdep.c
==============================================================================
--- head/sys/dev/ath/ah_osdep.c	Tue May 17 16:13:59 2011	(r222030)
+++ head/sys/dev/ath/ah_osdep.c	Tue May 17 16:30:34 2011	(r222031)
@@ -140,16 +140,20 @@ ath_hal_ether_sprintf(const u_int8_t *ma
 }
 
 #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


More information about the svn-src-all mailing list