Copy ath/if_ath_debug.h from madwifi-dfs, it has some enhanced macros

Reference: madwifi-dfs@3544


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3798 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2008-07-17 07:05:15 +00:00
parent 000f685865
commit c280829aed
1 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ enum {
#ifdef AR_DEBUG
/* DEBUG-ONLY DEFINITIONS */
#define DFLAG_ISSET(sc, _m) ((sc->sc_debug & _m))
#define DFLAG_ISSET(_sc, _m) (((_sc)->sc_debug & _m))
#define DPRINTF(_sc, _m, _fmt, ...) do { \
if (DFLAG_ISSET((_sc), (_m))) \
printk(KERN_DEBUG "%s: %s: " _fmt, \
@ -70,9 +70,9 @@ enum {
#else /* #ifdef AR_DEBUG */
#define DFLAG_ISSET(sc, _m) 0
#define DPRINTF(sc, _m, _fmt, ...)
#define KEYPRINTF(sc, k, ix, mac)
#define DFLAG_ISSET(_sc, _m) 0
#define DPRINTF(_sc, _m, _fmt, ...)
#define KEYPRINTF(_sc, _ix, _hk, _mac)
#endif /* #ifdef AR_DEBUG */