Skip to contentSkip to conversation

2.5.44 Stop bttv_driver.c from flooding /var/log/messages

PATCH In review Bongani 3 participants 3 messages Oct 22, 2002 – Oct 23, 2002 Media (V4L/DVB)

lore
Share & tools
lore

Bongani

author
#0 lore raw

PATCH 1/1 2.5.44 Stop bttv_driver.c from flooding /var/log/messages

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

drivers/media/video/bttv-driver.c renamed from drivers/media/video/bttv-driver.c.old +1 -1
@@ -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");
 
#1 lore raw

On Tue, 22 Oct 2002, Bongani wrote:

Hi,

Quoted 5 lines

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

I had sent a quite similar patch to Gerd and the v4l list (where I am not subscribed) on Oct 6th. The only thing I got was the "maintainer action required" reply from the list bot. As the archive is for subsribers only I cannot say if it ever reached the list.

Alan please include this patch in -ac2.

To Suse-folks: what happend to gerd ? I had seen lots of questions
regarding v4l2 on this list but no answers.

Signature · 2 lines
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
56 69 73 69 74				http://www.zabbadoz.net/
#2 lore raw
Quoted 2 lines

To Suse-folks: what happend to gerd ? I had seen lots of questions
regarding v4l2 on this list but no answers.

I read lkml very briefly. Better use the video4linux list, that highly increases the chance I see it.

Gerd

PS: I have bttv updates in the queue anyway (also available from
http://bytesex.org/patches/2.5/). There are v4l2 patches too.

Signature · 3 lines
You can't please everybody.  And usually if you _try_ to please
everybody, the end result is one big mess.
				-- Linus Torvalds, 2002-04-20