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@xxxxxxxxxxx> > +#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@xxxxxxxxxxxxx might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html