提交 29cbef48 编写于 作者: J Joe Korty 提交者: Ingo Molnar

make might_sleep() display the oopsing process

Expand might_sleep's printk to indicate the oopsing process.
Signed-off-by: NJoe Korty <joe.korty@ccur.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 aec0a514
......@@ -8233,8 +8233,8 @@ void __might_sleep(char *file, int line)
prev_jiffy = jiffies;
printk(KERN_ERR "BUG: sleeping function called from invalid"
" context at %s:%d\n", file, line);
printk("in_atomic():%d, irqs_disabled():%d\n",
in_atomic(), irqs_disabled());
printk("in_atomic():%d, irqs_disabled():%d, pid: %d, name: %s\n",
in_atomic(), irqs_disabled(), current->pid, current->comm);
debug_show_held_locks(current);
if (irqs_disabled())
print_irqtrace_events(current);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册