Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /lib/smp_processor_id.c

Filename:/lib/smp_processor_id.c
Lines Added:3
Lines Deleted:1
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.25-rc1 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25  2.6.26-git1  2.6.26-git2  2.6.26-git3 

Location
[  2.6.25-rc7
  [  lib
     o  smp_processor_id.c

Patch

diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c
index eddc9b3..6c90fb9 100644
--- a/lib/smp_processor_id.c
+++ b/lib/smp_processor_id.c
@@ -42,7 +42,9 @@ unsigned int debug_smp_processor_id(void)
    if (!printk_ratelimit())
       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));
    dump_stack();
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.