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
293 293
294 sys_chdir((const char __user __force *)"/root");294 sys_chdir((const char __user __force *)"/root");
295 ROOT_DEV = current->fs->pwd.mnt->mnt_sb->s_dev;295 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",
297 current->fs->pwd.mnt->mnt_sb->s_type->name,298 current->fs->pwd.mnt->mnt_sb->s_type->name,
298 current->fs->pwd.mnt->mnt_sb->s_flags & MS_RDONLY ?299 current->fs->pwd.mnt->mnt_sb->s_flags & MS_RDONLY ?
299 " readonly" : "", MAJOR(ROOT_DEV), MINOR(ROOT_DEV));300 " readonly" : "", MAJOR(ROOT_DEV), MINOR(ROOT_DEV));