From owner-p4-projects@FreeBSD.ORG Mon Sep 1 23:13:11 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3C7B01065672; Mon, 1 Sep 2008 23:13:11 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F350C106568F for ; Mon, 1 Sep 2008 23:13:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DCA5E8FC08 for ; Mon, 1 Sep 2008 23:13:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m81NDAPJ034652 for ; Mon, 1 Sep 2008 23:13:10 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m81NDAIF034648 for perforce@freebsd.org; Mon, 1 Sep 2008 23:13:10 GMT (envelope-from sam@freebsd.org) Date: Mon, 1 Sep 2008 23:13:10 GMT Message-Id: <200809012313.m81NDAIF034648@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Cc: Subject: PERFORCE change 149025 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 23:13:11 -0000 http://perforce.freebsd.org/chv.cgi?CH=149025 Change 149025 by sam@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