From owner-svn-src-all@freebsd.org Sat May 14 20:02:03 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51C34B3B7C0; Sat, 14 May 2016 20:02:03 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1E203150C; Sat, 14 May 2016 20:02:03 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4EK22r5021388; Sat, 14 May 2016 20:02:02 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4EK22s8021387; Sat, 14 May 2016 20:02:02 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201605142002.u4EK22s8021387@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Sat, 14 May 2016 20:02:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299752 - head/sys/dev/bwn X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 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: Sat, 14 May 2016 20:02:03 -0000 Author: adrian Date: Sat May 14 20:02:02 2016 New Revision: 299752 URL: https://svnweb.freebsd.org/changeset/base/299752 Log: [bwn] add more debugging bits. I'm hoping to migrate the device_printf() bits out into macros so we can control it later. Also, add some new debug sections that I'll soon be using. Modified: head/sys/dev/bwn/if_bwn_debug.h Modified: head/sys/dev/bwn/if_bwn_debug.h ============================================================================== --- head/sys/dev/bwn/if_bwn_debug.h Sat May 14 19:52:04 2016 (r299751) +++ head/sys/dev/bwn/if_bwn_debug.h Sat May 14 20:02:02 2016 (r299752) @@ -52,6 +52,9 @@ enum { BWN_DEBUG_FW = 0x00004000, /* firmware */ BWN_DEBUG_WME = 0x00008000, /* WME */ BWN_DEBUG_RF = 0x00010000, /* RF */ + BWN_DEBUG_XMIT_POWER = 0x00020000, + BWN_DEBUG_PHY = 0x00040000, + BWN_DEBUG_EEPROM = 0x00080000, BWN_DEBUG_FATAL = 0x80000000, /* fatal errors */ BWN_DEBUG_ANY = 0xffffffff }; @@ -65,4 +68,14 @@ enum { #define DPRINTF(sc, m, fmt, ...) do { (void) sc; } while (0) #endif /* BWN_DEBUG */ +#define BWN_ERRPRINTF(sc, ...) do { \ + printf(__VA_ARGS__); \ +} while (0) +#define BWN_DBGPRINTF(sc, ...) do { \ + printf(__VA_ARGS__); \ +} while (0) +#define BWN_WARNPRINTF(sc, ...) do { \ + printf(__VA_ARGS__); \ +} while (0) + #endif /* __IF_BWN_DEBUG_H__ */