From: matze Signed-off-by: Matthias Kaehlcke Signed-off-by: Andrew Morton --- mm/slab.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff -puN mm/slab.c~include-kern_-constant-in-printk-calls-in-mm-slabc mm/slab.c --- a/mm/slab.c~include-kern_-constant-in-printk-calls-in-mm-slabc +++ a/mm/slab.c @@ -2165,13 +2165,15 @@ kmem_cache_create (const char *name, siz */ res = probe_kernel_address(pc->name, tmp); if (res) { - printk("SLAB: cache with size %d has lost its name\n", + printk(KERN_ERR + "SLAB: cache with size %d has lost its name\n", pc->buffer_size); continue; } if (!strcmp(pc->name, name)) { - printk("kmem_cache_create: duplicate cache %s\n", name); + printk(KERN_ERR + "kmem_cache_create: duplicate cache %s\n", name); dump_stack(); goto oops; } @@ -2308,7 +2310,8 @@ kmem_cache_create (const char *name, siz left_over = calculate_slab_order(cachep, size, align, flags); if (!cachep->num) { - printk("kmem_cache_create: couldn't create cache %s.\n", name); + printk(KERN_ERR + "kmem_cache_create: couldn't create cache %s.\n", name); kmem_cache_free(&cache_cache, cachep); cachep = NULL; goto oops; _