mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] KERN_INFO for devfs
@ 2002-01-28 11:50 Denis Vlasenko
  2002-01-28 16:44 ` Richard Gooch
  0 siblings, 1 reply; 19+ messages in thread
From: Denis Vlasenko @ 2002-01-28 11:50 UTC (permalink / raw)
  To: Richard Gooch; +Cc: linux-kernel

Primary purpose of this patch is to make KERN_WARNING and
KERN_INFO log levels closer to their original meaning.
Today they are quite far from what was intended.
Just look what kernel writes at the WARNING level
each time you boot your box!

Diff for devfs.
--
vda

diff --recursive -u linux-2.4.13-orig/fs/devfs/base.c linux-2.4.13-new/fs/devfs/base.c
--- linux-2.4.13-orig/fs/devfs/base.c	Thu Oct 11 04:23:24 2001
+++ linux-2.4.13-new/fs/devfs/base.c	Thu Nov  8 23:42:11 2001
@@ -3289,13 +3289,13 @@
 {
     int err;

-    printk ("%s: v%s Richard Gooch (rgooch@atnf.csiro.au)\n",
-	    DEVFS_NAME, DEVFS_VERSION);
+    printk (KERN_INFO DEVFS_NAME ": v" DEVFS_VERSION
+	" Richard Gooch (rgooch@atnf.csiro.au)\n");
 #ifdef CONFIG_DEVFS_DEBUG
     devfs_debug = devfs_debug_init;
-    printk ("%s: devfs_debug: 0x%0x\n", DEVFS_NAME, devfs_debug);
+    printk (KERN_INFO DEVFS_NAME ": devfs_debug: 0x%0x\n", devfs_debug);
 #endif
-    printk ("%s: boot_options: 0x%0x\n", DEVFS_NAME, boot_options);
+    printk (KERN_INFO DEVFS_NAME ": boot_options: 0x%0x\n", boot_options);
     err = register_filesystem (&devfs_fs_type);
     if (!err)
     {

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [PATCH] KERN_INFO for devfs
@ 2002-01-29  7:27 Borsenkow Andrej
  2002-01-29 13:40 ` Denis Vlasenko
  0 siblings, 1 reply; 19+ messages in thread
From: Borsenkow Andrej @ 2002-01-29  7:27 UTC (permalink / raw)
  To: vda; +Cc: linux-kernel

> I changed "none" to "devfs" in do_mount("none", "/dev", "devfs", 0,
""): 
> "none is busy" is misleading at umount time :-) 

File systems that do not have real devices behind them have "none" as
device. Please do not change it - it was correct. Having it later in
/proc/mounts may confuse some user-level tools. If you want to fix it -
fix umount to report something more sensible if device == none.

-andrej



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2002-02-01  7:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28 11:50 [PATCH] KERN_INFO for devfs Denis Vlasenko
2002-01-28 16:44 ` Richard Gooch
2002-01-29  1:20   ` Denis Vlasenko
2002-01-29 16:49     ` Horst von Brand
2002-01-30 13:03       ` Denis Vlasenko
2002-01-30 11:09         ` David Weinehall
2002-01-30 16:32           ` Denis Vlasenko
2002-01-30 12:34             ` Zwane Mwaikambo
2002-01-30 15:16             ` Alan Cox
2002-01-30 18:04             ` Richard Gooch
2002-01-30 18:20               ` Richard Gooch
2002-01-30 18:32               ` Alan Cox
2002-01-30 19:37               ` Jeff Garzik
2002-01-31 20:44               ` Horst von Brand
2002-01-29  7:27 Borsenkow Andrej
2002-01-29 13:40 ` Denis Vlasenko
2002-01-29 10:39   ` Borsenkow Andrej
2002-01-29 15:40     ` Denis Vlasenko
2002-01-29 17:48     ` Richard Gooch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®