[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20101207213857.GN2700@tuxdriver.com>
Date: Tue, 7 Dec 2010 16:38:58 -0500
From: "John W. Linville" <linville@...driver.com>
To: Joe Perches <joe@...ches.com>
Cc: "Luis R. Rodriguez" <lrodriguez@...eros.com>,
linux-kernel@...r.kernel.org, Peter Stuge <peter@...ge.se>,
Felix Fietkau <nbd@...nwrt.org>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 1/4] ath: Add and use ath_printk and ath_<level>
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@...ches.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@...driver.com might be all we have. Be ready.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists