Re: [PATCH 2.6.11.2][2/2] printk with anti-cluttering-feature

2005-03-24 Thread Bodo Eggert
On Mon, 21 Mar 2005, Bodo Eggert wrote:
> On Sun, 20 Mar 2005, Bodo Eggert wrote:

I just sent an alternative fix kot atkbd.c, which clashes with the 
previous version of this patch. This leaves un with one place where 
printk_nospam is used. Just in case you still think it's usefull, here is 
the modified patch.

BTW: If you're bugged by other kernel messages, I can add them, too.

> The new kernels have tuner.c fixed differently, removed that part.
> 
> > Update some functions to use printk_nospam

> > Signed-Off-By: Bodo Eggert <[EMAIL PROTECTED]>
> > 
> > diff -purNXdontdiff linux-2.6.11/drivers/block/scsi_ioctl.c 
> > linux-2.6.11.new/drivers/block/scsi_ioctl.c
> > --- linux-2.6.11/drivers/block/scsi_ioctl.c 2005-03-03 15:41:28.0 
> > +0100
> > +++ linux-2.6.11.new/drivers/block/scsi_ioctl.c 2005-03-20 
> > 14:56:55.0 +0100
> > @@ -547,7 +547,7 @@ int scsi_cmd_ioctl(struct file *file, st
> >  * old junk scsi send command ioctl
> >  */
> > case SCSI_IOCTL_SEND_COMMAND:
> > -   printk(KERN_WARNING "program %s is using a deprecated 
> > SCSI ioctl, please convert it to SG_IO\n", current->comm);
> > +   printk_nospam(2296159591, KERN_WARNING "program %s is 
> > using a deprecated SCSI ioctl, please convert it to SG_IO\n", 
> > current->comm);
> > err = -EINVAL;
> > if (!arg)
> > break;
-- 
Funny quotes:
38. Last night I played a blank tape at full blast. The mime next door went
nuts.
Friß, Spammer: [EMAIL PROTECTED] [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 2.6.11.2][2/2] printk with anti-cluttering-feature

2005-03-21 Thread Bodo Eggert
On Sun, 20 Mar 2005, Bodo Eggert wrote:

The new kernels have tuner.c fixed differently, removed that part.

> Update some functions to use printk_nospam
> 
> Signed-Off-By: Bodo Eggert <[EMAIL PROTECTED]>
> 
> diff -purNXdontdiff linux-2.6.11/drivers/block/scsi_ioctl.c 
> linux-2.6.11.new/drivers/block/scsi_ioctl.c
> --- linux-2.6.11/drivers/block/scsi_ioctl.c   2005-03-03 15:41:28.0 
> +0100
> +++ linux-2.6.11.new/drivers/block/scsi_ioctl.c   2005-03-20 
> 14:56:55.0 +0100
> @@ -547,7 +547,7 @@ int scsi_cmd_ioctl(struct file *file, st
>* old junk scsi send command ioctl
>*/
>   case SCSI_IOCTL_SEND_COMMAND:
> - printk(KERN_WARNING "program %s is using a deprecated 
> SCSI ioctl, please convert it to SG_IO\n", current->comm);
> + printk_nospam(2296159591, KERN_WARNING "program %s is 
> using a deprecated SCSI ioctl, please convert it to SG_IO\n", current->comm);
>   err = -EINVAL;
>   if (!arg)
>   break;
> diff -purNXdontdiff linux-2.6.11/drivers/input/keyboard/atkbd.c 
> linux-2.6.11.new/drivers/input/keyboard/atkbd.c
> --- linux-2.6.11/drivers/input/keyboard/atkbd.c   2005-03-03 
> 15:41:33.0 +0100
> +++ linux-2.6.11.new/drivers/input/keyboard/atkbd.c   2005-03-20 
> 14:56:55.0 +0100
> @@ -320,7 +320,7 @@ static irqreturn_t atkbd_interrupt(struc
>   atkbd_report_key(&atkbd->dev, regs, KEY_HANJA, 3);
>   goto out;
>   case ATKBD_RET_ERR:
> - printk(KERN_DEBUG "atkbd.c: Keyboard on %s reports too 
> many keys pressed.\n", serio->phys);
> + printk_nospam(2260620158, KERN_DEBUG "atkbd.c: Keyboard 
> on %s reports too many keys pressed.\n", serio->phys);
>   goto out;
>   }
>  

-- 
Top 100 things you don't want the sysadmin to say:
61. Yes, I chowned all the files to belong to pvcs.  Is that a problem to
you?
Friß, Spammer: [EMAIL PROTECTED] [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2.6.11.2][2/2] printk with anti-cluttering-feature

2005-03-20 Thread Bodo Eggert
Update some functions to use printk_nospam

Signed-Off-By: Bodo Eggert <[EMAIL PROTECTED]>

diff -purNXdontdiff linux-2.6.11/drivers/block/scsi_ioctl.c 
linux-2.6.11.new/drivers/block/scsi_ioctl.c
--- linux-2.6.11/drivers/block/scsi_ioctl.c 2005-03-03 15:41:28.0 
+0100
+++ linux-2.6.11.new/drivers/block/scsi_ioctl.c 2005-03-20 14:56:55.0 
+0100
@@ -547,7 +547,7 @@ int scsi_cmd_ioctl(struct file *file, st
 * old junk scsi send command ioctl
 */
case SCSI_IOCTL_SEND_COMMAND:
-   printk(KERN_WARNING "program %s is using a deprecated 
SCSI ioctl, please convert it to SG_IO\n", current->comm);
+   printk_nospam(2296159591, KERN_WARNING "program %s is 
using a deprecated SCSI ioctl, please convert it to SG_IO\n", current->comm);
err = -EINVAL;
if (!arg)
break;
diff -purNXdontdiff linux-2.6.11/drivers/input/keyboard/atkbd.c 
linux-2.6.11.new/drivers/input/keyboard/atkbd.c
--- linux-2.6.11/drivers/input/keyboard/atkbd.c 2005-03-03 15:41:33.0 
+0100
+++ linux-2.6.11.new/drivers/input/keyboard/atkbd.c 2005-03-20 
14:56:55.0 +0100
@@ -320,7 +320,7 @@ static irqreturn_t atkbd_interrupt(struc
atkbd_report_key(&atkbd->dev, regs, KEY_HANJA, 3);
goto out;
case ATKBD_RET_ERR:
-   printk(KERN_DEBUG "atkbd.c: Keyboard on %s reports too 
many keys pressed.\n", serio->phys);
+   printk_nospam(2260620158, KERN_DEBUG "atkbd.c: Keyboard 
on %s reports too many keys pressed.\n", serio->phys);
goto out;
}
 
diff -purNXdontdiff linux-2.6.11/drivers/media/video/tuner.c 
linux-2.6.11.new/drivers/media/video/tuner.c
--- linux-2.6.11/drivers/media/video/tuner.c2005-03-20 20:54:54.0 
+0100
+++ linux-2.6.11.new/drivers/media/video/tuner.c2005-03-20 
14:56:55.0 +0100
@@ -1048,7 +1048,7 @@ static void set_tv_freq(struct i2c_clien
   right now we don't have that in the config
   struct and this way is still better than no
   check at all */
-   printk("tuner: TV freq (%d.%02d) out of range (%d-%d)\n",
+   printk_nospam(1801459135, "tuner: TV freq (%d.%02d) out of 
range (%d-%d)\n",
   freq/16,freq%16*100/16,tv_range[0],tv_range[1]);
return;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/