summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/if_ath_debug.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-05-15 23:39:37 +0000
committeradrian <adrian@FreeBSD.org>2012-05-15 23:39:37 +0000
commitb8ac2f029197fa913d2563d309c5a24ee6febea7 (patch)
tree061a2f02f98608997d06c2180902fa6d1569a796 /sys/dev/ath/if_ath_debug.c
parent5d003d3cdb1089e987e38199a3957cceba0235ba (diff)
downloadFreeBSD-src-b8ac2f029197fa913d2563d309c5a24ee6febea7.zip
FreeBSD-src-b8ac2f029197fa913d2563d309c5a24ee6febea7.tar.gz
Migrate ath_debug and sc_debug from an int to a uint64_t / QUAD;
add some more BAR debugging logic. * Change the definition of ath_debug and ath_softc.sc_debug from int to uint64_t; * Change the relevant sysctls; * Add a new BAR TX debugging field; * Use this in if_ath_tx. This has been tested by using the sysctl program, which happily allows for fields > 32 bits to be configured.
Diffstat (limited to 'sys/dev/ath/if_ath_debug.c')
-rw-r--r--sys/dev/ath/if_ath_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath_debug.c b/sys/dev/ath/if_ath_debug.c
index b438455..e960136 100644
--- a/sys/dev/ath/if_ath_debug.c
+++ b/sys/dev/ath/if_ath_debug.c
@@ -89,12 +89,12 @@ __FBSDID("$FreeBSD$");
#ifdef ATH_DEBUG
#include <dev/ath/if_ath_debug.h>
-int ath_debug = 0;
+uint64_t ath_debug = 0;
SYSCTL_DECL(_hw_ath);
-SYSCTL_INT(_hw_ath, OID_AUTO, debug, CTLFLAG_RW, &ath_debug,
+SYSCTL_QUAD(_hw_ath, OID_AUTO, debug, CTLFLAG_RW, &ath_debug,
0, "control debugging printfs");
-TUNABLE_INT("hw.ath.debug", &ath_debug);
+TUNABLE_QUAD("hw.ath.debug", &ath_debug);
void
ath_printrxbuf(struct ath_softc *sc, const struct ath_buf *bf,
OpenPOWER on IntegriCloud