summaryrefslogtreecommitdiffstats
path: root/tools/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-06-15 20:08:13 +0000
committeradrian <adrian@FreeBSD.org>2012-06-15 20:08:13 +0000
commitba79261a636fe794a6c109d7917ded2a9c7a23b3 (patch)
tree85ecb526d91cee56c416b25cc26ce7469c1805fb /tools/tools
parent11027d8a66b310882573351da7db047e4cc37fb4 (diff)
downloadFreeBSD-src-ba79261a636fe794a6c109d7917ded2a9c7a23b3.zip
FreeBSD-src-ba79261a636fe794a6c109d7917ded2a9c7a23b3.tar.gz
Convert athdebug to use the 64 bit dev.ath.X.debug sysctl.
Diffstat (limited to 'tools/tools')
-rw-r--r--tools/tools/ath/athdebug/athdebug.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/tools/ath/athdebug/athdebug.c b/tools/tools/ath/athdebug/athdebug.c
index d1c2c14..4f8f7c8 100644
--- a/tools/tools/ath/athdebug/athdebug.c
+++ b/tools/tools/ath/athdebug/athdebug.c
@@ -51,6 +51,7 @@
const char *progname;
+/* XXX TODO: include if_ath_debug.h */
enum {
ATH_DEBUG_XMIT = 0x00000001, /* basic xmit operation */
ATH_DEBUG_XMIT_DESC = 0x00000002, /* xmit descriptors */
@@ -81,7 +82,7 @@ enum {
static struct {
const char *name;
- u_int bit;
+ uint64_t bit;
} flags[] = {
{ "xmit", ATH_DEBUG_XMIT },
{ "xmit_desc", ATH_DEBUG_XMIT_DESC },
@@ -109,7 +110,7 @@ static struct {
{ "fatal", ATH_DEBUG_FATAL },
};
-static u_int
+static uint64_t
getflag(const char *name, int len)
{
int i;
@@ -150,7 +151,7 @@ main(int argc, char *argv[])
const char *cp, *tp;
const char *sep;
int c, op, i;
- u_int32_t debug, ndebug;
+ uint64_t debug, ndebug;
size_t debuglen;
char oid[256];
OpenPOWER on IntegriCloud