mirror of
https://github.com/proski/madwifi
synced 2024-11-24 23:40:00 +03:00
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:
parent
000f685865
commit
c280829aed
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user