From owner-svn-src-all@FreeBSD.ORG Fri Jun 15 20:08:14 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E7BE106564A; Fri, 15 Jun 2012 20:08:14 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 29C4E8FC18; Fri, 15 Jun 2012 20:08:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5FK8EAu001236; Fri, 15 Jun 2012 20:08:14 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5FK8DP0001234; Fri, 15 Jun 2012 20:08:13 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201206152008.q5FK8DP0001234@svn.freebsd.org> From: Adrian Chadd Date: Fri, 15 Jun 2012 20:08:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237143 - head/tools/tools/ath/athdebug X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 15 Jun 2012 20:08:14 -0000 Author: adrian Date: Fri Jun 15 20:08:13 2012 New Revision: 237143 URL: http://svn.freebsd.org/changeset/base/237143 Log: Convert athdebug to use the 64 bit dev.ath.X.debug sysctl. Modified: head/tools/tools/ath/athdebug/athdebug.c Modified: head/tools/tools/ath/athdebug/athdebug.c ============================================================================== --- head/tools/tools/ath/athdebug/athdebug.c Fri Jun 15 19:42:49 2012 (r237142) +++ head/tools/tools/ath/athdebug/athdebug.c Fri Jun 15 20:08:13 2012 (r237143) @@ -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];