]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
When we get corruption reports, it's useful to see if the kernel was
authorDave Jones <davej@redhat.com>
Wed, 24 Aug 2011 23:46:39 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Aug 2011 04:27:26 +0000 (14:27 +1000)
tainted, to rule out problems we can't do anything about.

Signed-off-by: Dave Jones <davej@redhat.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slub.c

index 537cec14cd2d0d3d84a6cc05f4cc10913b9820f4..4bf96a4b664bf76dd14ea83c1f3a1cb640e1dce2 100644 (file)
--- 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");
 }