svn commit: r223525 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Sat Jun 25 00:34:41 UTC 2011


Author: adrian
Date: Sat Jun 25 00:34:40 2011
New Revision: 223525
URL: http://svn.freebsd.org/changeset/base/223525

Log:
  Commit missing piece from a couple days ago - re-add ath_hal_debug.

Modified:
  head/sys/dev/ath/ah_osdep.c

Modified: head/sys/dev/ath/ah_osdep.c
==============================================================================
--- head/sys/dev/ath/ah_osdep.c	Fri Jun 24 23:59:14 2011	(r223524)
+++ head/sys/dev/ath/ah_osdep.c	Sat Jun 25 00:34:40 2011	(r223525)
@@ -76,6 +76,14 @@ extern	void DO_HALDEBUG(struct ath_hal *
 
 /* NB: put this here instead of the driver to avoid circular references */
 SYSCTL_NODE(_hw, OID_AUTO, ath, CTLFLAG_RD, 0, "Atheros driver parameters");
+SYSCTL_NODE(_hw_ath, OID_AUTO, hal, CTLFLAG_RD, 0, "Atheros HAL parameters");
+
+#ifdef AH_DEBUG
+int ath_hal_debug = 0;
+SYSCTL_INT(_hw_ath_hal, OID_AUTO, debug, CTLFLAG_RW, &ath_hal_debug,
+    0, "Atheros HAL debugging printfs");
+TUNABLE_INT("hw.ath.hal.debug", &ath_hal_debug);
+#endif /* AH_DEBUG */
 
 MALLOC_DEFINE(M_ATH_HAL, "ath_hal", "ath hal data");
 
@@ -147,8 +155,6 @@ DO_HALDEBUG(struct ath_hal *ah, u_int ma
 #include <sys/pcpu.h>
 #include <dev/ath/ath_hal/ah_decode.h>
 
-SYSCTL_NODE(_hw_ath, OID_AUTO, hal, CTLFLAG_RD, 0, "Atheros HAL parameters");
-
 static	struct alq *ath_hal_alq;
 static	int ath_hal_alq_emitdev;	/* need to emit DEVICE record */
 static	u_int ath_hal_alq_lost;		/* count of lost records */


More information about the svn-src-all mailing list