diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-04-23 12:28:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-23 12:47:48 -0700 |
commit | 3dc5063786b273f1aee545844f6bd4e9651ebffe (patch) | |
tree | 18324d6e3b46a3c94aeec16d59f3f55e940625ea /mm/slub.c | |
parent | 79c1cb7a8ca8f08cd78f7c5eebc85bbe937f5ad4 (diff) | |
download | linux-3dc5063786b273f1aee545844f6bd4e9651ebffe.tar.gz linux-3dc5063786b273f1aee545844f6bd4e9651ebffe.tar.bz2 linux-3dc5063786b273f1aee545844f6bd4e9651ebffe.zip |
slab_err: Pass parameters correctly to slab_bug
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c index 7f8aaa291a4e..39592b5ce68a 100644 --- 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(); } |