Skip to contentSkip to conversation

slub: add taint flag outputting to debug paths

PATCH New [email protected] 1 participant 1 message Nov 15, 2011

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 2/2 slub: add taint flag outputting to debug paths

From: Dave Jones <[email protected]>
Subject: 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.

---

 mm/slub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slub.c renamed from mm/slub.c~slub-add-taint-flag-outputting-to-debug-paths +1 -1
diff -puN mm/slub.c~slub-add-taint-flag-outputting-to-debug-paths mm/slub.c
@@ -570,7 +570,7 @@ static void slab_bug(struct kmem_cache *
 	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");
 }

_

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>