All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bttv: Filter debugging messages
@ 2012-11-22 11:26 Olaf Bauer
  0 siblings, 0 replies; only message in thread
From: Olaf Bauer @ 2012-11-22 11:26 UTC (permalink / raw)
  To: linux-media

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

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.


[-- Attachment #2: bttv-i2c.patch --]
[-- Type: text/x-patch, Size: 437 bytes --]

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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-22 18:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 11:26 [PATCH] bttv: Filter debugging messages Olaf Bauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.