From f22e10c57147a10ca11d9bbe1ce986c2b6f6688a Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Thu, 25 Aug 2011 09:46:39 +1000 Subject: [PATCH] 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 --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5