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

Showing the changes to kernel (1 of 1 file). Show all

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
95169516 /* Save this before calling printk(), since that will clobber it: */
95179517 preempt_disable_ip = get_preempt_disable_ip(current);
95189518
9519− printk(KERN_ERR
9520− "BUG: sleeping function called from invalid context at %s:%d\n",
9521− file, line);
9522− printk(KERN_ERR
9523− "in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n",
9524− in_atomic(), irqs_disabled(), current->non_block_count,
9525− current->pid, current->comm);
9519+ pr_err("BUG: sleeping function called from invalid context at %s:%d\n",
9520+ file, line);
9521+ pr_err("in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n",
9522+ in_atomic(), irqs_disabled(), current->non_block_count,
9523+ current->pid, current->comm);
95269524
95279525 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");
95299527
95309528 debug_show_held_locks(current);
95319529 if (irqs_disabled())