Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f53b6fc authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Don't call a warnign a bug. It's a warning.



Change the default printout message for WARN_ON() to say what it is, not
something else.  I'm tired of having people get all aflutter about a warning.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d333fc8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ struct bug_entry {
#define WARN_ON(condition) ({						\
	typeof(condition) __ret_warn_on = (condition);			\
	if (unlikely(__ret_warn_on)) {					\
		printk("BUG: at %s:%d %s()\n", __FILE__,		\
		printk("WARNING: at %s:%d %s()\n", __FILE__,		\
			__LINE__, __FUNCTION__);			\
		dump_stack();						\
	}								\