PERFORCE change 149025 for review
Sam Leffler
sam at FreeBSD.org
Mon Sep 1 23:13:11 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=149025
Change 149025 by sam at sam_ebb on 2008/09/01 23:12:14
handle abi change
Affected files ...
.. //depot/projects/vap/sys/dev/ath/ah_osdep.c#5 edit
Differences ...
==== //depot/projects/vap/sys/dev/ath/ah_osdep.c#5 (text+ko) ====
@@ -71,8 +71,12 @@
int lineno, const char* msg);
#endif
#ifdef AH_DEBUG
+#if HAL_ABI_VERSION >= 0x08090101
+extern void HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...);
+#else
extern void HALDEBUG(struct ath_hal *ah, const char* fmt, ...);
extern void HALDEBUGn(struct ath_hal *ah, u_int level, const char* fmt, ...);
+#endif
#endif /* AH_DEBUG */
/* NB: put this here instead of the driver to avoid circular references */
@@ -139,7 +143,19 @@
}
#ifdef AH_DEBUG
+#if HAL_ABI_VERSION >= 0x08090101
void
+HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...)
+{
+ if (ath_hal_debug & mask) {
+ __va_list ap;
+ va_start(ap, fmt);
+ ath_hal_vprintf(ah, fmt, ap);
+ va_end(ap);
+ }
+}
+#else
+void
HALDEBUG(struct ath_hal *ah, const char* fmt, ...)
{
if (ath_hal_debug) {
@@ -160,6 +176,7 @@
va_end(ap);
}
}
+#endif
#endif /* AH_DEBUG */
#ifdef AH_DEBUG_ALQ
More information about the p4-projects
mailing list