Subject: Re: [PATCH] net/8021q/vlan_dev.c - Use print_mac

From: Philip Craig <philipc-XXXsiaCtIV5Wk0Htik3J/[email-masked]>
Date: Tue, 19 Feb 2008 11:30:25 +1000

Joe Perches wrote:
> Perhaps it's more sensible to go back to
> 
> #ifdef DEBUG
> #define pr_debug(fmt, arg...) do {} while (0)
> #endif
> 
> and give up the printf argument verification

I think argument verification is important.   Can you keep it
like this:

#ifdef DEBUG
#define pr_debug(fmt, arg...) \
	do { \
		if (0) \
			printk(KERN_DEBUG fmt, ##arg); \
	} while (0)
#endif

We still lose the return value though, I'm not sure how to keep that
safely in macros.

But does anything rely on the side effects already?  This would
introduce bugs if so.