Patch to make serial module shut up.

Russ Steffen (rsteffen@ia.net)
Sun, 28 Apr 1996 10:59:23 -0500 (CDT)


I finally got sick of the the serial driver (which I have as a module)
babbling at the console every time it's inserted. So, I made this
patch that that adds a KERN_INFO priority to the "normal" printk's
in the serial module.

It's patched agaist 1.3.96.

------------------------------%<--------------------------------------
--- linux-1.3.x/drivers/char/serial.c.RRS Sun Apr 28 10:24:34 1996
+++ linux-1.3.x/drivers/char/serial.c Sun Apr 28 10:35:15 1996
@@ -2448,15 +2448,15 @@
*/
static void show_serial_version(void)
{
- printk("%s version %s with", serial_name, serial_version);
+ printk( KERN_INFO "%s version %s with", serial_name, serial_version);
#ifdef CONFIG_HUB6
- printk(" HUB-6");
+ printk( KERN_INFO " HUB-6");
#define SERIAL_OPT
#endif
#ifdef SERIAL_OPT
- printk(" enabled\n");
+ printk( KERN_INFO " enabled\n");
#else
- printk(" no serial options enabled\n");
+ printk( KERN_INFO " no serial options enabled\n");
#endif
#undef SERIAL_OPT
}
@@ -2797,27 +2797,27 @@
autoconfig(info);
if (info->type == PORT_UNKNOWN)
continue;
- printk("tty%02d%s at 0x%04x (irq = %d)", info->line,
+ printk( KERN_INFO "tty%02d%s at 0x%04x (irq = %d)", info->line,
(info->flags & ASYNC_FOURPORT) ? " FourPort" : "",
info->port, info->irq);
switch (info->type) {
case PORT_8250:
- printk(" is a 8250\n");
+ printk( KERN_INFO " is a 8250\n");
break;
case PORT_16450:
- printk(" is a 16450\n");
+ printk( KERN_INFO " is a 16450\n");
break;
case PORT_16550:
- printk(" is a 16550\n");
+ printk( KERN_INFO " is a 16550\n");
break;
case PORT_16550A:
- printk(" is a 16550A\n");
+ printk( KERN_INFO " is a 16550A\n");
break;
case PORT_16650:
- printk(" is a 16650\n");
+ printk( KERN_INFO " is a 16650\n");
break;
default:
- printk("\n");
+ printk( KERN_INFO "\n");
break;
}
}
@@ -2867,19 +2867,19 @@
printk("register_serial(): autoconfig failed\n");
return -1;
}
- printk("tty%02d at 0x%04x (irq = %d)", info->line,
+ printk( KERN_INFO "tty%02d at 0x%04x (irq = %d)", info->line,
info->port, info->irq);
switch (info->type) {
case PORT_8250:
- printk(" is a 8250\n"); break;
+ printk( KERN_INFO " is a 8250\n"); break;
case PORT_16450:
- printk(" is a 16450\n"); break;
+ printk( KERN_INFO " is a 16450\n"); break;
case PORT_16550:
- printk(" is a 16550\n"); break;
+ printk( KERN_INFO " is a 16550\n"); break;
case PORT_16550A:
- printk(" is a 16550A\n"); break;
+ printk( KERN_INFO " is a 16550A\n"); break;
default:
- printk("\n"); break;
+ printk( KERN_INFO "\n"); break;
}
restore_flags(flags);
return info->line;

-- 
+-------------------------------------------------------+
| Russ Steffen                                          |
| EMail: rsteffen@ia.net                                |
+-------------------------------------------------------+