diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-01-31 10:45:13 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-19 12:27:29 -0400 |
commit | a5dd63efda3d07b50c0feda6fb4796bece237e61 (patch) | |
tree | 367cb2be5f9694d6d9eab4cf4394c67f96b225ea /kernel/locking/rtmutex-debug.c | |
parent | 5f0d5a3ae7cff0d7fa943c199c3a2e44f23e1fac (diff) |
lockdep: Use "WARNING" tag on lockdep splats
This commit changes lockdep splats to begin lines with "WARNING" and
to use pr_warn() instead of printk(). This change eases scripted
analysis of kernel console output.
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/locking/rtmutex-debug.c')
-rw-r--r-- | kernel/locking/rtmutex-debug.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/locking/rtmutex-debug.c b/kernel/locking/rtmutex-debug.c index 97ee9df32e0f..db4f55211b04 100644 --- a/kernel/locking/rtmutex-debug.c +++ b/kernel/locking/rtmutex-debug.c | |||
@@ -102,10 +102,11 @@ void debug_rt_mutex_print_deadlock(struct rt_mutex_waiter *waiter) | |||
102 | return; | 102 | return; |
103 | } | 103 | } |
104 | 104 | ||
105 | printk("\n============================================\n"); | 105 | pr_warn("\n"); |
106 | printk( "[ BUG: circular locking deadlock detected! ]\n"); | 106 | pr_warn("============================================\n"); |
107 | printk("%s\n", print_tainted()); | 107 | pr_warn("WARNING: circular locking deadlock detected!\n"); |
108 | printk( "--------------------------------------------\n"); | 108 | pr_warn("%s\n", print_tainted()); |
109 | pr_warn("--------------------------------------------\n"); | ||
109 | printk("%s/%d is deadlocking current task %s/%d\n\n", | 110 | printk("%s/%d is deadlocking current task %s/%d\n\n", |
110 | task->comm, task_pid_nr(task), | 111 | task->comm, task_pid_nr(task), |
111 | current->comm, task_pid_nr(current)); | 112 | current->comm, task_pid_nr(current)); |