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-20110905~1^2~100 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=61c36920ac6e1a92ce2c76bc7a3d1aad8283f5a4;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 537cec14cd2d..4bf96a4b664b 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -596,7 +596,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"); }