[PATCH -next] x86: fix setup printk format warning
- From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
- Date: Wed, 30 Apr 2008 13:54:46 -0700
From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Fix x86 setup printk format warming:
next-20080430/arch/x86/kernel/setup.c:172: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'ssize_t'
Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
arch/x86/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- next-20080430.orig/arch/x86/kernel/setup.c
+++ next-20080430/arch/x86/kernel/setup.c
@@ -168,7 +168,7 @@ void __init setup_per_cpu_areas(void)
/* Copy section for each CPU (we discard the original) */
size = PERCPU_ENOUGH_ROOM;
- printk(KERN_INFO "PERCPU: Allocating %lu bytes of per cpu data\n",
+ printk(KERN_INFO "PERCPU: Allocating %zd bytes of per cpu data\n",
size);
for_each_possible_cpu(cpu) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: [PATCH 1/2] mm: Fix overcommit overflow
- Next by Date: Re: [patch, -git] input: CONFIG_INPUT_APANEL build fix
- Previous by thread: [PATCH 1/2] mm: Fix overcommit overflow
- Next by thread: [PATCH -next] PNP: fix printk format warnings
- Index(es):