how is DPRINTF defined.

legendbb <[email protected]>
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <[email protected]>
Don't understand the DPRINTF format in the driver.

ex. DPRINTF(sc, ATH_DEBUG_DOTH,
"Set CHANNEL_DFS_CLEAR flag on channel %4u MHz\n",
channel->channel);

The macro is:
#define DPRINTF(sc, _fmt, ...) do { \
if (sc->sc_debug & ATH_DEBUG_RATE) \
printk(_fmt, __VA_ARGS__); \
} while (0)

to my knowledge, the above ex. is replaced as printk(ATH_DEBUG_DOTH, "Set...

How does this "ATH_DEBUG_DOTH, " work for the printk's format?

Please suggest!

Thx
-- 
View this message in context: http://n2.nabble.com/how-is-DPRINTF-defined-tp4561373p4561373.html
Sent from the Madwifi Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.