aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-02-06 04:37:57 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:09 -0500
commitb41ecbebd4091a15233abab2d771e65fb82cdb20 (patch)
treeac451c5dc3a40b5e23930313222bc803e94143d7
parent1bf47346d75790ebd2563d909d48046961c7ffd5 (diff)
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>
-rw-r--r--lib/smp_processor_id.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c
index eddc9b3d3876..6c90fb90e19c 100644
--- a/lib/smp_processor_id.c
+++ b/lib/smp_processor_id.c
@@ -42,7 +42,9 @@ unsigned int debug_smp_processor_id(void)
42 if (!printk_ratelimit()) 42 if (!printk_ratelimit())
43 goto out_enable; 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 print_symbol("caller is %s\n", (long)__builtin_return_address(0)); 48 print_symbol("caller is %s\n", (long)__builtin_return_address(0));
47 dump_stack(); 49 dump_stack();
48 50