[PATCH] degrade severity of lockdep printk

From: Kyle McMartin
Date: Mon Mar 23 2009 - 16:16:40 EST


From: Kyle McMartin <kyle@xxxxxxxxxx>

While it means something is awry, the BUG prefix confuses users and
possibly the kerneloops tool. It's also being trivially exhausted in
normal use on my laptop and several other folks machines, but that will
need another look.

Signed-off-by: Kyle McMartin <kyle@xxxxxxxxxx>

diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 06b0c35..139a81a 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -368,7 +368,7 @@ static int save_trace(struct stack_trace *trace)
if (!debug_locks_off_graph_unlock())
return 0;

- printk("BUG: MAX_STACK_TRACE_ENTRIES too low!\n");
+ printk("warning: MAX_STACK_TRACE_ENTRIES too low!\n");
printk("turning off the locking correctness validator.\n");
dump_stack();

--
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/