Date: Sat, 14 May 2016 20:02:02 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299752 - head/sys/dev/bwn Message-ID: <201605142002.u4EK22s8021387@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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__ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605142002.u4EK22s8021387>