md2060 -- tiny patch in debug output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

if debug output is disabled in that driver, the driver will still produce 
many empty lines in the syslog (~15k empty lines in the last couple of 
days)

the patch is against http://linuxtv.org/hg/~pb/v4l-dvb.stk3000p

Sergei.
--- mt2060.c.orig	2006-04-25 00:22:11.000000000 +1000
+++ mt2060.c	2006-04-25 00:22:15.000000000 +1000
@@ -34,7 +34,7 @@
 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)
_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux