Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mandeep Singh Baines and committed by
Linus Torvalds
80cdc6da 3e50594e

+4 -3
+1 -1
fs/bio.c
··· 111 111 if (!slab) 112 112 goto out_unlock; 113 113 114 - printk("bio: create slab <%s> at %d\n", bslab->name, entry); 114 + printk(KERN_INFO "bio: create slab <%s> at %d\n", bslab->name, entry); 115 115 bslab->slab = slab; 116 116 bslab->slab_ref = 1; 117 117 bslab->slab_size = sz;
+1 -1
fs/namespace.c
··· 2701 2701 if (!mount_hashtable) 2702 2702 panic("Failed to allocate mount hash table\n"); 2703 2703 2704 - printk("Mount-cache hash table entries: %lu\n", HASH_SIZE); 2704 + printk(KERN_INFO "Mount-cache hash table entries: %lu\n", HASH_SIZE); 2705 2705 2706 2706 for (u = 0; u < HASH_SIZE; u++) 2707 2707 INIT_LIST_HEAD(&mount_hashtable[u]);
+2 -1
init/do_mounts.c
··· 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));