[Patch] 2.5.44 Stop bttv_driver.c from flooding /var/log/messages

Bongani (bhlope@mweb.co.za)
Tue, 22 Oct 2002 22:02:22 +0200


--Boundary-00=_O7at9uFUAOZsNAx
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

Hi Alan

I have sent this patch to Gerd and I did not get any reply from him, so...
The bttv drivers are/were filling up my /var/log/messages file with the
following output

Oct 20 04:03:01 localhost kernel: bttv0: amux: mode=-1 audio=1 signal=no
mux=4/1 irq=yes
Oct 20 04:03:01 localhost kernel: bttv0: amux: mode=-1 audio=1 signal=yes
mux=1/1 irq=yes
Oct 20 04:03:08 localhost kernel: bttv0: amux: mode=-1 audio=1 signal=no
mux=4/1 irq=yes

(Which seems to repeat three times a second for three seconds and waits 7
second before printing the message again)

The following patch quites them down.

Thanx

--Boundary-00=_O7at9uFUAOZsNAx
Content-Type: text/x-diff;
charset="us-ascii";
name="bttv.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="bttv.patch"

--- linux-2.5/drivers/media/video/bttv-driver.c.old 2002-10-21 00:08:50.000000000 +0200
+++ linux-2.5/drivers/media/video/bttv-driver.c 2002-10-21 00:09:17.000000000 +0200
@@ -813,7 +813,7 @@
i2c_mux = mux = (btv->audio & AUDIO_MUTE) ? AUDIO_OFF : btv->audio;
if (btv->opt_automute && !signal && !btv->radio_user)
mux = AUDIO_OFF;
- printk("bttv%d: amux: mode=%d audio=%d signal=%s mux=%d/%d irq=%s\n",
+ dprintk(KERN_DEBUG "bttv%d: amux: mode=%d audio=%d signal=%s mux=%d/%d irq=%s\n",
btv->nr, mode, btv->audio, signal ? "yes" : "no",
mux, i2c_mux, in_interrupt() ? "yes" : "no");

--Boundary-00=_O7at9uFUAOZsNAx--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/