From: "John W. Linville" <linville@tuxdriver.com>
To: Joe Perches <joe@perches.com>
Cc: "Luis R. Rodriguez" <lrodriguez@atheros.com>,
linux-kernel@vger.kernel.org, Peter Stuge <peter@stuge.se>,
Felix Fietkau <nbd@openwrt.org>,
linux-wireless@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH 1/4] ath: Add and use ath_printk and ath_<level>
Date: Tue, 7 Dec 2010 16:38:58 -0500 [thread overview]
Message-ID: <20101207213857.GN2700@tuxdriver.com> (raw)
In-Reply-To: <241e75c84fdd26bfae1c7b8806fe64fbac5de627.1291333544.git.joe@perches.com>
On Thu, Dec 02, 2010 at 07:12:35PM -0800, Joe Perches wrote:
> Add ath_printk and ath_<level> similar to
> dev_printk and dev_<level> from device.h
>
> This allows a more gradual rename of ath_print
> to to ath_dbg or perhaps ath_debug.
>
> This basically removes debug.h leaving
> only an #define ath_printk ath_dbg
> there and moving all the ATH_DBG_<foo>
> enums to ath.h
>
> I do not think there's much purpose for struct
> ath_common * being passed to the ath_printk
> functions, but perhaps there might be.
>
> Signed-off-by: Joe Perches <joe@perches.com>
> +#define ATH_DBG_WARN(foo, arg...) WARN(foo, arg)
> +
> +#else
> +
> +static inline __attribute__ ((format (printf, 3, 4))) int
> +ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask,
> + const char *fmt, ...)
> +{
> + return 0;
> +}
> +#define ATH_DBG_WARN(foo, arg) do {} while (0)
Missing the "..." after "arg" -- I fixed it up...
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
next prev parent reply other threads:[~2010-12-07 21:45 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 5:13 [ath9k-devel] [PATCH 1/2] ath: Fix ath_dbg uses missing newlines and access beyond array bound Joe Perches
2010-12-02 5:13 ` Joe Perches
2010-12-02 5:13 ` Joe Perches
2010-12-02 5:13 ` [ath9k-devel] [PATCH 2/2] ath: Fix logging message typos Joe Perches
2010-12-02 5:13 ` Joe Perches
2010-12-02 5:13 ` Joe Perches
2010-12-02 5:13 ` Joe Perches
2010-12-02 5:30 ` [ath9k-devel] " Peter Stuge
2010-12-02 5:30 ` Peter Stuge
2010-12-02 5:30 ` [ath9k-devel] " Peter Stuge
2010-12-02 5:30 ` Peter Stuge
2010-12-02 5:34 ` Joe Perches
2010-12-02 5:34 ` Joe Perches
2010-12-02 5:34 ` Joe Perches
2010-12-02 5:34 ` Joe Perches
2010-12-02 6:01 ` Nick Kossifidis
2010-12-02 6:01 ` Nick Kossifidis
2010-12-02 6:01 ` [ath9k-devel] " Nick Kossifidis
2010-12-02 6:01 ` Nick Kossifidis
2010-12-02 5:35 ` [ath9k-devel] [PATCH 2/2 V2] " Joe Perches
2010-12-02 5:35 ` Joe Perches
2010-12-02 5:35 ` Joe Perches
2010-12-02 5:35 ` Joe Perches
2010-12-02 19:02 ` [ath9k-devel] [PATCH 1/2] ath: Fix ath_dbg uses missing newlines and access beyond array bound Luis R. Rodriguez
2010-12-02 19:02 ` Luis R. Rodriguez
2010-12-02 19:02 ` Luis R. Rodriguez
2010-12-03 3:12 ` [ath9k-devel] [PATCH 0/4] ath: logging message conversion Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` [PATCH 1/4] ath: Add and use ath_printk and ath_<level> Joe Perches
2010-12-07 21:38 ` John W. Linville [this message]
2010-12-07 19:05 ` [ath9k-devel] [PATCH 0/4] ath: logging message conversion John W. Linville
2010-12-07 19:05 ` John W. Linville
2010-12-07 19:05 ` John W. Linville
2010-12-07 19:26 ` [ath9k-devel] " Luis R. Rodriguez
2010-12-07 19:26 ` Luis R. Rodriguez
2010-12-03 3:12 ` [ath9k-devel] [PATCH 2/4] ath: Convert ath_print(.., ATH_DBG_FATAL to ath_err Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` [ath9k-devel] [PATCH 3/4] ath: Convert ath_print to ath_dbg Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` [ath9k-devel] [PATCH 4/4] ath: Fix ath_dbg access beyond array bound Joe Perches
2010-12-03 3:12 ` Joe Perches
2010-12-03 3:12 ` Joe Perches
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=20101207213857.GN2700@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lrodriguez@atheros.com \
--cc=nbd@openwrt.org \
--cc=netdev@vger.kernel.org \
--cc=peter@stuge.se \
/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.