Commit b4169525 authored by matze's avatar matze Committed by Linus Torvalds

include KERN_* constant in printk() calls in mm/slab.c

Signed-off-by: default avatarMatthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bc0055ae
...@@ -2168,13 +2168,15 @@ kmem_cache_create (const char *name, size_t size, size_t align, ...@@ -2168,13 +2168,15 @@ kmem_cache_create (const char *name, size_t size, size_t align,
*/ */
res = probe_kernel_address(pc->name, tmp); res = probe_kernel_address(pc->name, tmp);
if (res) { 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); pc->buffer_size);
continue; continue;
} }
if (!strcmp(pc->name, name)) { 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(); dump_stack();
goto oops; goto oops;
} }
...@@ -2311,7 +2313,8 @@ kmem_cache_create (const char *name, size_t size, size_t align, ...@@ -2311,7 +2313,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,
left_over = calculate_slab_order(cachep, size, align, flags); left_over = calculate_slab_order(cachep, size, align, flags);
if (!cachep->num) { 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); kmem_cache_free(&cache_cache, cachep);
cachep = NULL; cachep = NULL;
goto oops; goto oops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment