diff options
author | Sam Leffler <sam@FreeBSD.org> | 2008-10-27 18:30:33 +0000 |
---|---|---|
committer | Sam Leffler <sam@FreeBSD.org> | 2008-10-27 18:30:33 +0000 |
commit | 411373ebc6c2b3b533ae0619b07c625a53499705 (patch) | |
tree | 85ee583b1aeda558fcf2e8e155e60aebfe76bf22 /sys/dev/ath/ah_osdep.c | |
parent | 46d4d74c94b9d6683c4deba020908b9fcc873f5b (diff) | |
download | src-411373ebc6c2b3b533ae0619b07c625a53499705.tar.gz src-411373ebc6c2b3b533ae0619b07c625a53499705.zip |
prepare for a new hal
Notes
Notes:
svn path=/head/; revision=184369
Diffstat (limited to 'sys/dev/ath/ah_osdep.c')
-rw-r--r-- | sys/dev/ath/ah_osdep.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/dev/ath/ah_osdep.c b/sys/dev/ath/ah_osdep.c index 249c260fd51b..8ddb425d42e1 100644 --- a/sys/dev/ath/ah_osdep.c +++ b/sys/dev/ath/ah_osdep.c @@ -71,8 +71,12 @@ extern void ath_hal_assert_failed(const char* filename, 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,6 +143,18 @@ ath_hal_ether_sprintf(const u_int8_t *mac) } #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, ...) { @@ -160,6 +176,7 @@ HALDEBUGn(struct ath_hal *ah, u_int level, const char* fmt, ...) va_end(ap); } } +#endif #endif /* AH_DEBUG */ #ifdef AH_DEBUG_ALQ |