]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
slab_err: Pass parameters correctly to slab_bug
authorChristoph Lameter <clameter@sgi.com>
Wed, 23 Apr 2008 19:28:01 +0000 (12:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Apr 2008 19:47:48 +0000 (12:47 -0700)
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c

index 7f8aaa291a4e2b15083a0b5ad8e9beb6978a4346..39592b5ce68adc07493ee8ae077f1dcd98839080 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -521,7 +521,7 @@ static void print_trailer(struct kmem_cache *s, struct page *page, u8 *p)
 static void object_err(struct kmem_cache *s, struct page *page,
                        u8 *object, char *reason)
 {
-       slab_bug(s, reason);
+       slab_bug(s, "%s", reason);
        print_trailer(s, page, object);
 }
 
@@ -533,7 +533,7 @@ static void slab_err(struct kmem_cache *s, struct page *page, char *fmt, ...)
        va_start(args, fmt);
        vsnprintf(buf, sizeof(buf), fmt, args);
        va_end(args);
-       slab_bug(s, fmt);
+       slab_bug(s, "%s", buf);
        print_page_info(page);
        dump_stack();
 }