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__ */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to