]> err.no Git - linux-2.6/commitdiff
x86: fix setup.c printk format warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 5 Jun 2008 18:10:59 +0000 (11:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 09:31:32 +0000 (11:31 +0200)
Fix setup.c printk format warning:

linux-next-20080605/arch/x86/kernel/setup.c: In function 'setup_per_cpu_areas':
linux-next-20080605/arch/x86/kernel/setup.c:173: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'ssize_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup.c

index df49ce87a3003dab9d589857e9bbce3183c1c2b0..d4eaa4eb481dbf403ca2cef585dbf4225fc4a023 100644 (file)
@@ -169,7 +169,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) {