[PATCH] bttv: Filter debugging messages

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

 



My logfiles and dmesg output have become almost unreadable due to
repeated, almost empty lines.

[ 3606.212316] >
[ 3606.212738] >
...
[ 3627.177280] >
[ 3627.177775] >
...

They start one hour after vdr daemon is launched. Each section contains
13 lines and is repeated every 21 seconds. Kernel driver for my
AverMedia DVB-T 771 is bttv, kernel is 3.6.6-1-ARCH (Arch Linux). I
installed v4l-dvb from git and get the same result but with one line
appended to each section

[ 3688.860166] >
[ 3688.860570] >
[ 3691.188200] dvb_frontend_poll: 8 callbacks suppressed

The attached patch suppresses at least the useless ">" output.

diff -ur a/drivers/media/pci/bt8xx/bttv-i2c.c b/drivers/media/pci/bt8xx/bttv-i2c.c
--- a/drivers/media/pci/bt8xx/bttv-i2c.c	2012-11-22 09:56:25.817307254 +0100
+++ b/drivers/media/pci/bt8xx/bttv-i2c.c	2012-11-22 10:01:46.014371997 +0100
@@ -174,7 +174,7 @@
 		if (i2c_debug)
 			pr_cont(" %02x", msg->buf[cnt]);
 	}
-	if (!(xmit & BT878_I2C_NOSTOP))
+	if (i2c_debug && !(xmit & BT878_I2C_NOSTOP))
 		pr_cont(">\n");
 	return msg->len;
 

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux