From: Dave Jones Date: Wed, 28 Sep 2011 00:49:54 +0000 (+1000) Subject: slub: add taint flag outputting to debug paths X-Git-Tag: next-20110929~2^2~212 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a2f89e00a61e81d483b7bc23af5ce53c9f330e59;p=karo-tx-linux.git slub: add taint flag outputting to debug paths When we get corruption reports, it's useful to see if the kernel was tainted, to rule out problems we can't do anything about. Signed-off-by: Dave Jones Cc: Pekka Enberg Signed-off-by: Andrew Morton <> --- diff --git a/mm/slub.c b/mm/slub.c index 95215aa6a75e..bbec29e9d12c 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -570,7 +570,7 @@ static void slab_bug(struct kmem_cache *s, char *fmt, ...) va_end(args); printk(KERN_ERR "========================================" "=====================================\n"); - printk(KERN_ERR "BUG %s: %s\n", s->name, buf); + printk(KERN_ERR "BUG %s (%s): %s\n", s->name, print_tainted(), buf); printk(KERN_ERR "----------------------------------------" "-------------------------------------\n\n"); }