Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2016 04:09:17 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301008 - head/sys/dev/ath
Message-ID:  <201605310409.u4V49HKk018045@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)			\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605310409.u4V49HKk018045>