From: Patrick Boettcher Date: Sun, 14 May 2006 13:49:42 +0000 (-0300) Subject: V4L/DVB (4454): Corrected debugging output of the mt2060 X-Git-Tag: v2.6.19-rc1~643^2~105 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83fa907963662ecaade803cec4c9c3e14b69ad7d;p=linux-2.6 V4L/DVB (4454): Corrected debugging output of the mt2060 When debugging was disabled at lot of empty lines where printed anyway. Reported by Rolf Ahrenberg and Sergei Haller. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/mt2060.c b/drivers/media/dvb/frontends/mt2060.c index 618da4bafb..14b4f588ee 100644 --- a/drivers/media/dvb/frontends/mt2060.c +++ b/drivers/media/dvb/frontends/mt2060.c @@ -34,7 +34,7 @@ static int debug=0; module_param(debug, int, 0644); MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); -#define dprintk(args...) do { if (debug) printk(KERN_DEBUG "MT2060: " args); printk("\n"); } while (0) +#define dprintk(args...) do { if (debug) { printk(KERN_DEBUG "MT2060: " args); printk("\n"); } } while (0) // Reads a single register static int mt2060_readreg(struct mt2060_state *state, u8 reg, u8 *val)