From owner-svn-src-all@freebsd.org Tue May 31 04:09:18 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5529CB558CF; Tue, 31 May 2016 04:09:18 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26A551C58; Tue, 31 May 2016 04:09:18 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4V49HRU018046; Tue, 31 May 2016 04:09:17 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4V49HKk018045; Tue, 31 May 2016 04:09:17 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201605310409.u4V49HKk018045@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Tue, 31 May 2016 04:09:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301008 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2016 04:09:18 -0000 Author: adrian Date: Tue May 31 04:09:17 2016 New Revision: 301008 URL: https://svnweb.freebsd.org/changeset/base/301008 Log: [ath] add BTCOEX debug section; modify DPRINTF() to take a no-arg format string. Tested: * QCA9565, STA mode Modified: head/sys/dev/ath/if_ath_debug.h Modified: head/sys/dev/ath/if_ath_debug.h ============================================================================== --- head/sys/dev/ath/if_ath_debug.h Tue May 31 00:23:29 2016 (r301007) +++ head/sys/dev/ath/if_ath_debug.h Tue May 31 04:09:17 2016 (r301008) @@ -69,6 +69,7 @@ enum { ATH_DEBUG_NODE_PWRSAVE = 0x800000000ULL, /* node powersave */ ATH_DEBUG_DIVERSITY = 0x1000000000ULL, /* Diversity logic */ ATH_DEBUG_PWRSAVE = 0x2000000000ULL, + ATH_DEBUG_BTCOEX = 0x4000000000ULL, /* BT Coex */ ATH_DEBUG_ANY = 0xffffffffffffffffULL }; @@ -92,9 +93,9 @@ enum { extern uint64_t ath_debug; #define IFF_DUMPPKTS(sc, m) (sc->sc_debug & (m)) -#define DPRINTF(sc, m, fmt, ...) do { \ +#define DPRINTF(sc, m, ...) do { \ if (sc->sc_debug & (m)) \ - device_printf(sc->sc_dev, fmt, __VA_ARGS__); \ + device_printf(sc->sc_dev, __VA_ARGS__); \ } while (0) #define KEYPRINTF(sc, ix, hk, mac) do { \ if (sc->sc_debug & ATH_DEBUG_KEYCACHE) \