Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

debug_smp_processor_id() fixlets

- Account for debug_smp_processor_id()'s own preempt_disable() when
displaying the preempt_count().

- 80 cols, not 800.

Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
b41ecbeb 1bf47346

+3 -1
+3 -1
lib/smp_processor_id.c
··· 42 42 if (!printk_ratelimit()) 43 43 goto out_enable; 44 44 45 - printk(KERN_ERR "BUG: using smp_processor_id() in preemptible [%08x] code: %s/%d\n", preempt_count(), current->comm, current->pid); 45 + printk(KERN_ERR "BUG: using smp_processor_id() in preemptible [%08x] " 46 + "code: %s/%d\n", 47 + preempt_count() - 1, current->comm, current->pid); 46 48 print_symbol("caller is %s\n", (long)__builtin_return_address(0)); 47 49 dump_stack(); 48 50