* [PATCH -next] x86: fix printk format
@ 2008-04-15 22:16 Randy.Dunlap
2008-04-16 8:12 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2008-04-15 22:16 UTC (permalink / raw)
To: linux-next, linux-kernel; +Cc: mingo, tglx, hpa, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix gcc printk format warnings:
next-20080415/arch/x86/mm/mmio-mod.c: In function 'print_pte':
next-20080415/arch/x86/mm/mmio-mod.c:154: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'pteval_t'
next-20080415/arch/x86/mm/mmio-mod.c:154: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'pteval_t'
next-20080415/arch/x86/mm/mmio-mod.c: At top level:
next-20080415/arch/x86/mm/mmio-mod.c:403: warning: 'downed_cpus' defined but not used
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
arch/x86/mm/mmio-mod.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- next-20080415.orig/arch/x86/mm/mmio-mod.c
+++ next-20080415/arch/x86/mm/mmio-mod.c
@@ -151,8 +151,9 @@ static void print_pte(unsigned long addr
"0x%08lx\n", address);
BUG();
}
- pr_info(NAME "pte for 0x%lx: 0x%lx 0x%lx\n", address, pte_val(*pte),
- pte_val(*pte) & _PAGE_PRESENT);
+ pr_info(NAME "pte for 0x%lx: 0x%llx 0x%llx\n", address,
+ (unsigned long long)pte_val(*pte),
+ (unsigned long long)pte_val(*pte) & _PAGE_PRESENT);
}
/*
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-16 8:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-15 22:16 [PATCH -next] x86: fix printk format Randy.Dunlap
2008-04-16 8:12 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox