aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 3e984afc199c..997c3b2f50c9 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2168,13 +2168,15 @@ kmem_cache_create (const char *name, size_t size, size_t align,
2168 */ 2168 */
2169 res = probe_kernel_address(pc->name, tmp); 2169 res = probe_kernel_address(pc->name, tmp);
2170 if (res) { 2170 if (res) {
2171 printk("SLAB: cache with size %d has lost its name\n", 2171 printk(KERN_ERR
2172 "SLAB: cache with size %d has lost its name\n",
2172 pc->buffer_size); 2173 pc->buffer_size);
2173 continue; 2174 continue;
2174 } 2175 }
2175 2176
2176 if (!strcmp(pc->name, name)) { 2177 if (!strcmp(pc->name, name)) {
2177 printk("kmem_cache_create: duplicate cache %s\n", name); 2178 printk(KERN_ERR
2179 "kmem_cache_create: duplicate cache %s\n", name);
2178 dump_stack(); 2180 dump_stack();
2179 goto oops; 2181 goto oops;
2180 } 2182 }
@@ -2311,7 +2313,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,
2311 left_over = calculate_slab_order(cachep, size, align, flags); 2313 left_over = calculate_slab_order(cachep, size, align, flags);
2312 2314
2313 if (!cachep->num) { 2315 if (!cachep->num) {
2314 printk("kmem_cache_create: couldn't create cache %s.\n", name); 2316 printk(KERN_ERR
2317 "kmem_cache_create: couldn't create cache %s.\n", name);
2315 kmem_cache_free(&cache_cache, cachep); 2318 kmem_cache_free(&cache_cache, cachep);
2316 cachep = NULL; 2319 cachep = NULL;
2317 goto oops; 2320 goto oops;