aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorJoe Korty <joe.korty@ccur.com>2008-08-27 11:21:39 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-28 05:36:02 -0400
commit29cbef4869bf288256ab76c7dc674cb132b35de2 (patch)
treea3b4feba846ffc14ecef52822d4248007322974b /kernel/sched.c
parentaec0a5142cb52aaa152d962d84a838e25d520742 (diff)
make might_sleep() display the oopsing process
Expand might_sleep's printk to indicate the oopsing process. Signed-off-by: Joe Korty <joe.korty@ccur.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 93f5ea08be97..6e283dc7679a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8233,8 +8233,8 @@ void __might_sleep(char *file, int line)
8233 prev_jiffy = jiffies; 8233 prev_jiffy = jiffies;
8234 printk(KERN_ERR "BUG: sleeping function called from invalid" 8234 printk(KERN_ERR "BUG: sleeping function called from invalid"
8235 " context at %s:%d\n", file, line); 8235 " context at %s:%d\n", file, line);
8236 printk("in_atomic():%d, irqs_disabled():%d\n", 8236 printk("in_atomic():%d, irqs_disabled():%d, pid: %d, name: %s\n",
8237 in_atomic(), irqs_disabled()); 8237 in_atomic(), irqs_disabled(), current->pid, current->comm);
8238 debug_show_held_locks(current); 8238 debug_show_held_locks(current);
8239 if (irqs_disabled()) 8239 if (irqs_disabled())
8240 print_irqtrace_events(current); 8240 print_irqtrace_events(current);