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.
Showing the changes to init (1 of 3 files). Show all
Unified · Split
| @@ -293,7 +293,8 @@ static int __init do_mount_root(char *name, char *fs, int flags, void *data) · 292 unmodified lines | ||
| 293 | 293 | |
| 294 | 294 | sys_chdir((const char __user __force *)"/root"); |
| 295 | 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 | 298 | current->fs->pwd.mnt->mnt_sb->s_type->name, |
| 298 | 299 | current->fs->pwd.mnt->mnt_sb->s_flags & MS_RDONLY ? |
| 299 | 300 | " readonly" : "", MAJOR(ROOT_DEV), MINOR(ROOT_DEV)); |