Commit 75e50517 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] trivial: no "error" on preempt_count notice

The attached trivial patch simply changes the printk debug statement in
do_exit when preempt_count!=0 to say "note" instead of "error" and log
at KERN_INFO in lieu of KERN_ERR.

I want to keep the message around a bit, but people get too paranoid
when things like nfsd legitimately exit with a preempt_count=1.
parent 350d70da
......@@ -532,7 +532,7 @@ NORET_TYPE void do_exit(long code)
del_timer_sync(&tsk->real_timer);
if (unlikely(preempt_get_count()))
printk(KERN_ERR "error: %s[%d] exited with preempt_count %d\n",
printk(KERN_INFO "note: %s[%d] exited with preempt_count %d\n",
current->comm, current->pid,
preempt_get_count());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment