mirror of
https://github.com/proski/madwifi
synced 2025-02-16 15:24:18 +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
|
#ifdef AR_DEBUG
|
||||||
|
|
||||||
/* DEBUG-ONLY DEFINITIONS */
|
/* 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 { \
|
#define DPRINTF(_sc, _m, _fmt, ...) do { \
|
||||||
if (DFLAG_ISSET((_sc), (_m))) \
|
if (DFLAG_ISSET((_sc), (_m))) \
|
||||||
printk(KERN_DEBUG "%s: %s: " _fmt, \
|
printk(KERN_DEBUG "%s: %s: " _fmt, \
|
||||||
@ -70,9 +70,9 @@ enum {
|
|||||||
|
|
||||||
#else /* #ifdef AR_DEBUG */
|
#else /* #ifdef AR_DEBUG */
|
||||||
|
|
||||||
#define DFLAG_ISSET(sc, _m) 0
|
#define DFLAG_ISSET(_sc, _m) 0
|
||||||
#define DPRINTF(sc, _m, _fmt, ...)
|
#define DPRINTF(_sc, _m, _fmt, ...)
|
||||||
#define KEYPRINTF(sc, k, ix, mac)
|
#define KEYPRINTF(_sc, _ix, _hk, _mac)
|
||||||
|
|
||||||
#endif /* #ifdef AR_DEBUG */
|
#endif /* #ifdef AR_DEBUG */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user