LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] io_apic_32.c: fix compile warning on printk type
@ 2008-10-20 21:31 Vlada Peric
0 siblings, 0 replies; only message in thread
From: Vlada Peric @ 2008-10-20 21:31 UTC (permalink / raw)
To: linux-kernel; +Cc: mingo, tglx, hpa
Please CC me directly, as I'm not subscribed to the list. I'm not sureif Gmail won't mangle the patch, but I've been unable to find a guideonline on how to send one. I also might've sent the message more thanonce, for which I sincerely apologize.
This patch fixes the following warnings by casting to u32:
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'
Signed-off-by: Vlada Perić <vlada.peric <at> gmail.com>--- arch/x86/kernel/io_apic_32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.cindex e710289..64f0953 100644--- a/arch/x86/kernel/io_apic_32.c+++ b/arch/x86/kernel/io_apic_32.c@@ -1536,8 +1536,8 @@ __apicdebuginit(void) print_local_APIC(void *dummy) }
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);--1.6.0.2
--Vlada Perić˙ôčş{.nÇ+ˇŽ+%Ë˙ąéÝś\x17Ľw˙ş{.nÇ+ˇĽ{ąţGŤé˙{ayş\x1dĘÚë,j\a˘fŁ˘ˇhďę˙ęçz_čŽ\x03(éݢj"ú\x1aś^[m§˙˙ž\aŤţGŤé˙˘¸?¨čÚ&Łř§~áśiOćŹzˇvŘ^\x14\x04\x1aś^[m§˙˙Ă\f˙śě˙˘¸?IĽ
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-20 21:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-20 21:31 [PATCH] io_apic_32.c: fix compile warning on printk type Vlada Peric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).