V4L/DVB (4454): Corrected debugging output of the mt2060
authorPatrick Boettcher <pb@linuxtv.org>
Sun, 14 May 2006 13:49:42 +0000 (10:49 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 26 Sep 2006 14:53:43 +0000 (11:53 -0300)
When debugging was disabled at lot of empty lines where printed anyway.
Reported by Rolf Ahrenberg and Sergei Haller.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/mt2060.c

index 618da4bafbb2fcb924d069fcb8a1ecbcfc1d7aff..14b4f588eeb7137f4c89a6d0a521fc228d3c460e 100644 (file)
@@ -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)