aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authormatze <matze@riseup.net>2007-05-06 17:49:52 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:12:54 -0400
commitb4169525bc2336ea6581c6ff2aa88b2671e3b9f9 (patch)
tree1d436ed4ccfca64e00e5bf5b9d5c373fd7d956d6 /mm/slab.c
parentbc0055aee40ba40627361d8ffd8530d315920f18 (diff)
include KERN_* constant in printk() calls in mm/slab.c
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.c')
-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;