Commit a45ed302 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Peter Zijlstra

sched: Cleanup might_sleep() printks

Convert them to pr_*(). No functional change.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210923165358.117496067@linutronix.de
parent 42a38756
...@@ -9516,16 +9516,14 @@ void __might_resched(const char *file, int line, int preempt_offset) ...@@ -9516,16 +9516,14 @@ void __might_resched(const char *file, int line, int preempt_offset)
/* Save this before calling printk(), since that will clobber it: */ /* Save this before calling printk(), since that will clobber it: */
preempt_disable_ip = get_preempt_disable_ip(current); preempt_disable_ip = get_preempt_disable_ip(current);
printk(KERN_ERR pr_err("BUG: sleeping function called from invalid context at %s:%d\n",
"BUG: sleeping function called from invalid context at %s:%d\n",
file, line); file, line);
printk(KERN_ERR pr_err("in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n",
"in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n",
in_atomic(), irqs_disabled(), current->non_block_count, in_atomic(), irqs_disabled(), current->non_block_count,
current->pid, current->comm); current->pid, current->comm);
if (task_stack_end_corrupted(current)) if (task_stack_end_corrupted(current))
printk(KERN_EMERG "Thread overran stack, or stack corrupted\n"); pr_emerg("Thread overran stack, or stack corrupted\n");
debug_show_held_locks(current); debug_show_held_locks(current);
if (irqs_disabled()) if (irqs_disabled())
......
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