]> err.no Git - linux-2.6/blobdiff - arch/x86/kernel/smpboot_64.c
x86: printk kernel version in WARN_ON and other dump_stack users
[linux-2.6] / arch / x86 / kernel / smpboot_64.c
index fd1fff6a35a29bca7107f70a72369975af8f4e60..500670c93d81d278e0402289803f5881946226b5 100644 (file)
@@ -351,7 +351,7 @@ void __cpuinit start_secondary(void)
        /*
         * We need to hold call_lock, so there is no inconsistency
         * between the time smp_call_function() determines number of
-        * IPI receipients, and the time when the determination is made
+        * IPI recipients, and the time when the determination is made
         * for which cpus receive the IPI in genapic_flat.c. Holding this
         * lock helps us to not include this cpu in a currently in progress
         * smp_call_function().
@@ -388,7 +388,7 @@ static void inquire_remote_apic(int apicid)
 
        printk(KERN_INFO "Inquiring remote APIC #%d...\n", apicid);
 
-       for (i = 0; i < sizeof(regs) / sizeof(*regs); i++) {
+       for (i = 0; i < ARRAY_SIZE(regs); i++) {
                printk("... APIC #%d %s: ", apicid, names[i]);
 
                /*