locking: clarify kernel-taint warning message
authorIngo Molnar <mingo@elte.hu>
Thu, 23 Apr 2009 07:36:52 +0000 (09:36 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 23 Apr 2009 07:36:52 +0000 (09:36 +0200)
Andi Kleen reported this message triggering on non-lockdep kernels:

   Disabling lockdep due to kernel taint

Clarify the message to say 'lock debugging' - debug_locks_off()
turns off all things lock debugging, not just lockdep.

[ Impact: change kernel warning message text ]

Reported-by: Andi Kleen <andi@firstfloor.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/panic.c

index 934fb377f4b328a4821e56a23051ca330647e74e..3dcaa1661357809bb1605779f625d9c9a92594f4 100644 (file)
@@ -221,7 +221,7 @@ void add_taint(unsigned flag)
         * post-warning case.
         */
        if (flag != TAINT_CRAP && flag != TAINT_WARN && __debug_locks_off())
-               printk(KERN_WARNING "Disabling lockdep due to kernel taint\n");
+               printk(KERN_WARNING "Disabling lock debugging due to kernel taint\n");
 
        set_bit(flag, &tainted_mask);
 }