Skip to contentSkip to conversation

arch/i386/kernel/apm.c: apm_init() warning fix

PATCH In review Eugene Teo 2 participants 2 messages Jul 29, 2007

lore
Share & tools
lore

Eugene Teo

author
#0 lore raw

PATCH 1/1 arch/i386/kernel/apm.c: apm_init() warning fix

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'.

---
 arch/i386/kernel/apm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/i386/kernel/apm.c +1 -1
index 47001d5..f02a8ac 100644
@@ -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)
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Sun, 29 Jul 2007 10:49:18 +0800 Eugene Teo <[email protected]> wrote:

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'.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/