From: bruno randolf <bruno@thinktube.com>
To: ath5k-devel@lists.ath5k.org
Cc: "Luis R. Rodriguez" <mcgrof@gmail.com>,
linux-wireless@vger.kernel.org, linville@tuxdriver.com,
Jiri Slaby <jirislaby@gmail.com>
Subject: Re: [ath5k-devel] ath5k: more consistent debug, info and error logging
Date: Thu, 22 Nov 2007 13:45:30 +0900 [thread overview]
Message-ID: <200711221345.31261.bruno@thinktube.com> (raw)
In-Reply-To: <200711221311.42072.bruno@thinktube.com>
> > > > + ATH_DEBUG_RESET = 0x00000001, /* reset processing */
> > > > + ATH_DEBUG_INTR = 0x00000002, /* ISR */
> > > > + ATH_DEBUG_MODE = 0x00000004, /* mode init/setup */
> > > > + ATH_DEBUG_XMIT = 0x00000008, /* basic xmit operation
> > > > */ + ATH_DEBUG_BEACON = 0x00000010, /* beacon handling
> > > > */ + ATH_DEBUG_BEACON_PROC = 0x00000020, /* beacon ISR proc
> > > > */ + ATH_DEBUG_CALIBRATE = 0x00000100, /* periodic calibration
> > > > */ + ATH_DEBUG_TXPOWER = 0x00000200, /* transmit power */ +
> > > > ATH_DEBUG_LED = 0x00000400, /* led management */ +
> > > > ATH_DEBUG_DUMP_RX = 0x00001000, /* print received skb content
> > > > */ + ATH_DEBUG_DUMP_TX = 0x00002000, /* print transmit
> > > > skb content */ + ATH_DEBUG_DUMPSTATE = 0x00004000, /* dump
> > > > register state */ + ATH_DEBUG_DUMPMODES = 0x00008000, /*
> > > > dump modes */ + ATH_DEBUG_TRACE = 0x00010000, /* trace
> > > > function calls */ + ATH_DEBUG_FATAL = 0x80000000, /*
> > > > fatal errors */ + ATH_DEBUG_ANY = 0xffffffff
> > > > +};
> >
> > While you're at it can you move these to use kernel-doc? You'll have
> > to name the enum, perhaps ath5k_debug ?
>
> o.k.
while doing that i question myself, what is ATH5K_DEBUG_FATAL /* fatal errors
*/ supposed to mean? shouldn't fatal errors be reported as errors, and not
only in debugging mode?
the only place where ATH5K_DEBUG_FATAL is used is in the code i moved from
ath5k_rx_stop() to:
void
ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah)
{
struct ath5k_desc *ds;
struct ath5k_buf *bf;
int status;
if (likely(!(sc->debug.level &
(ATH5K_DEBUG_RESET | ATH5K_DEBUG_FATAL))))
return;
printk(KERN_DEBUG "rx queue %x, link %p\n",
ath5k_hw_get_rx_buf(ah), sc->rxlink);
spin_lock_bh(&sc->rxbuflock);
list_for_each_entry(bf, &sc->rxbuf, list) {
ds = bf->desc;
status = ah->ah_proc_rx_desc(ah, ds);
if (!status || (sc->debug.level & ATH5K_DEBUG_FATAL))
ath5k_debug_printrxbuf(bf, status == 0);
}
spin_unlock_bh(&sc->rxbuflock);
}
so would it be ok to remove ATH5K_DEBUG_FATAL alltogether?
i might make that as a seperate patch once the first two are thru.
bruno
prev parent reply other threads:[~2007-11-22 4:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-20 9:09 Bruno Randolf
[not found] ` <200711201817.40243.bruno@thinktube.com>
2007-11-21 1:57 ` [ath5k-devel] ath5k: more consistent debug, info and error logging Luis R. Rodriguez
2007-11-21 8:56 ` bruno randolf
2007-11-22 4:11 ` bruno randolf
2007-11-22 4:45 ` bruno randolf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200711221345.31261.bruno@thinktube.com \
--to=bruno@thinktube.com \
--cc=ath5k-devel@lists.ath5k.org \
--cc=jirislaby@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mcgrof@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.