Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:54925 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752489Ab0LGVpH (ORCPT ); Tue, 7 Dec 2010 16:45:07 -0500 Date: Tue, 7 Dec 2010 16:38:58 -0500 From: "John W. Linville" To: Joe Perches Cc: "Luis R. Rodriguez" , linux-kernel@vger.kernel.org, Peter Stuge , Felix Fietkau , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 1/4] ath: Add and use ath_printk and ath_ Message-ID: <20101207213857.GN2700@tuxdriver.com> References: <241e75c84fdd26bfae1c7b8806fe64fbac5de627.1291333544.git.joe@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <241e75c84fdd26bfae1c7b8806fe64fbac5de627.1291333544.git.joe@perches.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Dec 02, 2010 at 07:12:35PM -0800, Joe Perches wrote: > Add ath_printk and ath_ similar to > dev_printk and dev_ 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_ > 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 > +#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.