lockdep: Do not break user-visible string
authorBorislav Petkov <bp@alien8.de>
Tue, 2 Jun 2015 13:38:27 +0000 (15:38 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Jun 2015 08:07:09 +0000 (10:07 +0200)
commit92ae18371cb1abb4e186dd9d48de2bb0d9bba626
treea5f13eb181343e775180b82c3198163a094a9d4c
parentb92b8b35a2e38bde319fd1d68ec84628c1f1b0fb
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>
kernel/locking/lockdep.c