History

sched: Cleanup might_sleep() printks

Convert them to pr_*(). No functional change.

Thomas Gleixner committed 5 years ago

Commit a45ed301 parent 42a38751 file · +6 −8Browse files

Unified · Split

kernel/sched/core.c+6−8
@@ -9516,16 +9516,14 @@ void __might_resched(const char *file, int line, int preempt_offset) · 9515 unmodified lines
9516 /* Save this before calling printk(), since that will clobber it: */9516 /* Save this before calling printk(), since that will clobber it: */
9517 preempt_disable_ip = get_preempt_disable_ip(current);9517 preempt_disable_ip = get_preempt_disable_ip(current);
9518 9518
9519 printk(KERN_ERR9519 pr_err("BUG: sleeping function called from invalid context at %s:%d\n",
9520 "BUG: sleeping function called from invalid context at %s:%d\n",9520 file, line);
9521 file, line);9521 pr_err("in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n",
9522 printk(KERN_ERR9522 in_atomic(), irqs_disabled(), current->non_block_count,
9523 "in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n",9523 current->pid, current->comm);
9524 in_atomic(), irqs_disabled(), current->non_block_count,
9525 current->pid, current->comm);
9526 9524
9527 if (task_stack_end_corrupted(current))9525 if (task_stack_end_corrupted(current))
9528 printk(KERN_EMERG "Thread overran stack, or stack corrupted\n");9526 pr_emerg("Thread overran stack, or stack corrupted\n");
9529 9527
9530 debug_show_held_locks(current);9528 debug_show_held_locks(current);
9531 if (irqs_disabled())9529 if (irqs_disabled())