arch/i386/kernel/apm.c: apm_init() warning fix
authorEugene Teo <eugeneteo@kernel.sg>
Tue, 31 Jul 2007 07:38:15 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:39 +0000 (15:39 -0700)
arch/i386/kernel/apm.c: In function 'apm_init':
arch/i386/kernel/apm.c:2240: warning: format '%lx' expects type 'long
unsigned int', but argument 3 has type 'u32'

apm_info.bios.offset is of type 'u32'.

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/apm.c

index 47001d50a083da27f3b3a0151949ff262a0cad1e..f02a8aca826be21abc18ac3e31fe8a59caeebb9e 100644 (file)
@@ -2235,7 +2235,7 @@ static int __init apm_init(void)
                apm_info.bios.cseg_16_len = 0; /* 64k */
 
        if (debug) {
-               printk(KERN_INFO "apm: entry %x:%lx cseg16 %x dseg %x",
+               printk(KERN_INFO "apm: entry %x:%x cseg16 %x dseg %x",
                        apm_info.bios.cseg, apm_info.bios.offset,
                        apm_info.bios.cseg_16, apm_info.bios.dseg);
                if (apm_info.bios.version > 0x100)