mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 16:53:58 -05:00
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>
This commit is contained in:
parent
1bf47346d7
commit
b41ecbebd4
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ unsigned int debug_smp_processor_id(void)
|
||||||
if (!printk_ratelimit())
|
if (!printk_ratelimit())
|
||||||
goto out_enable;
|
goto out_enable;
|
||||||
|
|
||||||
printk(KERN_ERR "BUG: using smp_processor_id() in preemptible [%08x] code: %s/%d\n", preempt_count(), current->comm, current->pid);
|
printk(KERN_ERR "BUG: using smp_processor_id() in preemptible [%08x] "
|
||||||
|
"code: %s/%d\n",
|
||||||
|
preempt_count() - 1, current->comm, current->pid);
|
||||||
print_symbol("caller is %s\n", (long)__builtin_return_address(0));
|
print_symbol("caller is %s\n", (long)__builtin_return_address(0));
|
||||||
dump_stack();
|
dump_stack();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue