Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753483Ab0LGVpJ (ORCPT ); Tue, 7 Dec 2010 16:45:09 -0500 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 Content-Disposition: inline In-Reply-To: <241e75c84fdd26bfae1c7b8806fe64fbac5de627.1291333544.git.joe@perches.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1287 Lines: 41 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/