Re: [PATCH] Fix generic WARN_ON message
From: Jeremy Fitzhardinge
Date: Wed Oct 18 2006 - 14:31:51 EST
Ingo Molnar wrote:
Firstly, most WARN_ON()s are /bugs/, not warnings ... If it's a real
warning, a KERN_INFO printk should be done.
It seems to me that either the warnings are really bugs, in which case
they should be using BUG/BUG_ON, or they're not really bugs, in which
case they should be presented differently.
Secondly, the reason i changed it to the 'BUG: ...' format is that i
tried to make it easier for automated tools (and for users) to figure
out that a kernel bug happened.
Well, are they bugs or not? I think people are more confused by the
"BUG" prefix and stacktrace than helped by it (even an experienced eye
will glance-parse a BUG+stack trace as a serious oops-level problem
rather than a warning).
J
J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/