]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
warnings: fix arch/x86/kernel/io_apic_64.c
authorIngo Molnar <mingo@elte.hu>
Sun, 12 Oct 2008 13:22:22 +0000 (15:22 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Oct 2008 13:22:22 +0000 (15:22 +0200)
fix:

 arch/x86/kernel/io_apic_64.c: In function ‘print_local_APIC’:
 arch/x86/kernel/io_apic_64.c:1284: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’
 arch/x86/kernel/io_apic_64.c:1285: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’

We want to print the two halves of 'icr' at 32 bit width.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/io_apic_64.c

index a1bec2969c6af666d9566ba9a3ba5bcef0a34ee0..02063ae042f72ae979a13b57035bd0d91f1dcb59 100644 (file)
@@ -1281,8 +1281,8 @@ __apicdebuginit(void) print_local_APIC(void *dummy)
        printk(KERN_DEBUG "... APIC ESR: %08x\n", v);
 
        icr = apic_icr_read();
-       printk(KERN_DEBUG "... APIC ICR: %08x\n", icr);
-       printk(KERN_DEBUG "... APIC ICR2: %08x\n", icr >> 32);
+       printk(KERN_DEBUG "... APIC ICR: %08x\n", (u32)icr);
+       printk(KERN_DEBUG "... APIC ICR2: %08x\n", (u32)(icr >> 32));
 
        v = apic_read(APIC_LVTT);
        printk(KERN_DEBUG "... APIC LVTT: %08x\n", v);