Re: [PATCH 0/5] merge io_apic_xx.c -- fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Tuesday, August 19, 2008 - 5:27 pm

On Tue, 19 Aug 2008 17:24:08 -0700
"Yinghai Lu" <yhlu.kernel@gmail.com> wrote:


yes

From: Andrew Morton <akpm@linux-foundation.org>

arch/x86/kernel/io_apic_32.c: In function 'print_local_APIC':
arch/x86/kernel/io_apic_32.c:1539: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'u64'
arch/x86/kernel/io_apic_32.c:1540: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'u64'

No need for casting here - we know what type u64 has.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/x86/kernel/io_apic_32.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN arch/x86/kernel/io_apic_32.c~arch-x86-kernel-io_apic_32c-fix-printk-warnings arch/x86/kernel/io_apic_32.c
--- a/arch/x86/kernel/io_apic_32.c~arch-x86-kernel-io_apic_32c-fix-printk-warnings
+++ a/arch/x86/kernel/io_apic_32.c
@@ -1536,8 +1536,8 @@ __apicdebuginit(void) print_local_APIC(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: %08Lx\n", icr);
+	printk(KERN_DEBUG "... APIC ICR2: %08Lx\n", icr >> 32);
 
 	v = apic_read(APIC_LVTT);
 	printk(KERN_DEBUG "... APIC LVTT: %08x\n", v);
_

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] merge io_apic_xx.c -- fix, Yinghai Lu, (Sat Aug 16, 3:07 am)
[PATCH 1/5] pci: change msi-x vector to 32bit, Yinghai Lu, (Sat Aug 16, 3:07 am)
[PATCH 1/5] pci: change msi-x vector to 32bit, Yinghai Lu, (Sat Aug 16, 3:07 am)
[PATCH 4/5] x86: unify mask_IO_APIC_irq, Yinghai Lu, (Sat Aug 16, 3:07 am)
[PATCH 5/5] x86: unify ack_apic_edge, Yinghai Lu, (Sat Aug 16, 3:07 am)
Re: [PATCH 0/5] merge io_apic_xx.c -- fix, Ingo Molnar, (Sat Aug 16, 6:35 am)
Re: [PATCH 0/5] merge io_apic_xx.c -- fix, Randy Dunlap, (Tue Aug 19, 3:21 pm)
Re: [PATCH 0/5] merge io_apic_xx.c -- fix, Yinghai Lu, (Tue Aug 19, 5:24 pm)
Re: [PATCH 0/5] merge io_apic_xx.c -- fix, Andrew Morton, (Tue Aug 19, 5:27 pm)
Re: [PATCH 0/5] merge io_apic_xx.c -- fix, Randy Dunlap, (Tue Aug 19, 5:32 pm)
Re: [PATCH 0/5] merge io_apic_xx.c -- fix, Ingo Molnar, (Wed Aug 20, 3:53 am)