History

fs: use appropriate printk priority levels

printk()s without a priority level default to KERN_WARNING. To reduce noise at KERN_WARNING, this patch set the priority level appriopriately for unleveled printks()s. This should be useful to folks that look at dmesg warnings closely.

Mandeep Singh Baines committed 15 years ago

Commit 80cdc6d1 parent 3e505943 files · +4 −3Browse files

Showing the changes to init (1 of 3 files). Show all

Unified · Split

init/do_mounts.c+2−1
@@ -293,7 +293,8 @@ static int __init do_mount_root(char *name, char *fs, int flags, void *data) · 292 unmodified lines
293293
294294 sys_chdir((const char __user __force *)"/root");
295295 ROOT_DEV = current->fs->pwd.mnt->mnt_sb->s_dev;
296− printk("VFS: Mounted root (%s filesystem)%s on device %u:%u.\n",
296+ printk(KERN_INFO
297+ "VFS: Mounted root (%s filesystem)%s on device %u:%u.\n",
297298 current->fs->pwd.mnt->mnt_sb->s_type->name,
298299 current->fs->pwd.mnt->mnt_sb->s_flags & MS_RDONLY ?
299300 " readonly" : "", MAJOR(ROOT_DEV), MINOR(ROOT_DEV));