diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-05-14 09:49:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 10:53:43 -0400 |
commit | 83fa907963662ecaade803cec4c9c3e14b69ad7d (patch) | |
tree | 56b1fa4a46c84c443fe6d61f7db8692dd17ab33b /drivers/media | |
parent | 825d51ef9ed956d896244f82b02988d370a7e47e (diff) |
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 <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/mt2060.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/mt2060.c b/drivers/media/dvb/frontends/mt2060.c index 618da4bafbb2..14b4f588eeb7 100644 --- a/drivers/media/dvb/frontends/mt2060.c +++ b/drivers/media/dvb/frontends/mt2060.c | |||
@@ -34,7 +34,7 @@ static int debug=0; | |||
34 | module_param(debug, int, 0644); | 34 | module_param(debug, int, 0644); |
35 | MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); | 35 | MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); |
36 | 36 | ||
37 | #define dprintk(args...) do { if (debug) printk(KERN_DEBUG "MT2060: " args); printk("\n"); } while (0) | 37 | #define dprintk(args...) do { if (debug) { printk(KERN_DEBUG "MT2060: " args); printk("\n"); } } while (0) |
38 | 38 | ||
39 | // Reads a single register | 39 | // Reads a single register |
40 | static int mt2060_readreg(struct mt2060_state *state, u8 reg, u8 *val) | 40 | static int mt2060_readreg(struct mt2060_state *state, u8 reg, u8 *val) |