From: Dave Jones Date: Wed, 24 Aug 2011 23:46:39 +0000 (+1000) Subject: When we get corruption reports, it's useful to see if the kernel was X-Git-Tag: next-20110921~1^2~96 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb5d53cab9e53543b13954dbdf845f3e047b6d02;p=karo-tx-linux.git 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 bf7f26e061ab..d5f96c5a1a91 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"); }