Commit 3dc50637 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

slab_err: Pass parameters correctly to slab_bug

Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 79c1cb7a
...@@ -521,7 +521,7 @@ static void print_trailer(struct kmem_cache *s, struct page *page, u8 *p) ...@@ -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, static void object_err(struct kmem_cache *s, struct page *page,
u8 *object, char *reason) u8 *object, char *reason)
{ {
slab_bug(s, reason); slab_bug(s, "%s", reason);
print_trailer(s, page, object); print_trailer(s, page, object);
} }
...@@ -533,7 +533,7 @@ static void slab_err(struct kmem_cache *s, struct page *page, char *fmt, ...) ...@@ -533,7 +533,7 @@ static void slab_err(struct kmem_cache *s, struct page *page, char *fmt, ...)
va_start(args, fmt); va_start(args, fmt);
vsnprintf(buf, sizeof(buf), fmt, args); vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args); va_end(args);
slab_bug(s, fmt); slab_bug(s, "%s", buf);
print_page_info(page); print_page_info(page);
dump_stack(); dump_stack();
} }
......
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