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.
Unified · Split
| @@ -111,7 +111,7 @@ static struct kmem_cache *bio_find_or_create_slab(unsigned int extra_size) · 110 unmodified lines | |||
| 111 | if (!slab) | 111 | if (!slab) |
| 112 | goto out_unlock; | 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 | bslab->slab = slab; | 115 | bslab->slab = slab; |
| 116 | bslab->slab_ref = 1; | 116 | bslab->slab_ref = 1; |
| 117 | bslab->slab_size = sz; | 117 | bslab->slab_size = sz; |
| @@ -2701,7 +2701,7 @@ void __init mnt_init(void) · 2700 unmodified lines | |||
| 2701 | if (!mount_hashtable) | 2701 | if (!mount_hashtable) |
| 2702 | panic("Failed to allocate mount hash table\n"); | 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 | for (u = 0; u < HASH_SIZE; u++) | 2706 | for (u = 0; u < HASH_SIZE; u++) |
| 2707 | INIT_LIST_HEAD(&mount_hashtable[u]); | 2707 | INIT_LIST_HEAD(&mount_hashtable[u]); |
| @@ -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)); |