summaryrefslogtreecommitdiffstats
path: root/kernel/locking
diff options
context:
space:
mode:
authorBorislav Petkov <bp@alien8.de>2015-06-02 09:38:27 -0400
committerIngo Molnar <mingo@kernel.org>2015-06-03 04:07:09 -0400
commit92ae18371cb1abb4e186dd9d48de2bb0d9bba626 (patch)
treea5f13eb181343e775180b82c3198163a094a9d4c /kernel/locking
parentb92b8b35a2e38bde319fd1d68ec84628c1f1b0fb (diff)
lockdep: Do not break user-visible string
Remove the line-break in the user-visible string and add the missing space in this error message: WARNING: lockdep init error! lock-(console_sem).lock was acquiredbefore lockdep_init Also: - don't yell, it's just a debug warning - denote references to function calls with '()' - standardize the lock name quoting - and finish the sentence. The result: WARNING: lockdep init error: lock '(console_sem).lock' was acquired before lockdep_init(). Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20150602133827.GD19887@pd.tnic [ Added a few more stylistic tweaks to the error message. ] Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking')
-rw-r--r--kernel/locking/lockdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index a0831e1b99f4..a61bb1d37a52 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4066,8 +4066,7 @@ void __init lockdep_info(void)
4066 4066
4067#ifdef CONFIG_DEBUG_LOCKDEP 4067#ifdef CONFIG_DEBUG_LOCKDEP
4068 if (lockdep_init_error) { 4068 if (lockdep_init_error) {
4069 printk("WARNING: lockdep init error! lock-%s was acquired" 4069 printk("WARNING: lockdep init error: lock '%s' was acquired before lockdep_init().\n", lock_init_error);
4070 "before lockdep_init\n", lock_init_error);
4071 printk("Call stack leading to lockdep invocation was:\n"); 4070 printk("Call stack leading to lockdep invocation was:\n");
4072 print_stack_trace(&lockdep_init_trace, 0); 4071 print_stack_trace(&lockdep_init_trace, 0);
4073 } 4072 }