Skip to contentSkip to conversation

bttv: Filter debugging messages

PATCH New Olaf Bauer 1 participant 1 message Nov 22, 2012

Subsystems (2)
lore
Share & tools
lore

Olaf Bauer

author
#0 lore raw

PATCH 1/1 bttv: Filter debugging messages

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.

drivers/media/pci/bt8xx/bttv-i2c.c +1 -1
diff -ur a/drivers/media/pci/bt8xx/bttv-i2c.c b/drivers/media/pci/bt8xx/bttv-i2c.c
@@ -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;