[PATCH] Fix generic WARN_ON message

A warning is a warning, not a BUG.

Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Jeremy Fitzhardinge 2006-12-08 02:36:24 -08:00 committed by Linus Torvalds
parent a8605aef81
commit 30e25b71e7

View file

@ -35,7 +35,7 @@ struct bug_entry {
#define WARN_ON(condition) ({ \ #define WARN_ON(condition) ({ \
typeof(condition) __ret_warn_on = (condition); \ typeof(condition) __ret_warn_on = (condition); \
if (unlikely(__ret_warn_on)) { \ if (unlikely(__ret_warn_on)) { \
printk("BUG: warning at %s:%d/%s()\n", __FILE__, \ printk("WARNING at %s:%d %s()\n", __FILE__, \
__LINE__, __FUNCTION__); \ __LINE__, __FUNCTION__); \
dump_stack(); \ dump_stack(); \
} \ } \