public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/i386/kernel/apm.c: apm_init() warning fix
@ 2007-07-29  2:49 Eugene Teo
  2007-07-29  4:49 ` Stephen Rothwell
  0 siblings, 1 reply; 2+ messages in thread
From: Eugene Teo @ 2007-07-29  2:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: Stephen Rothwell

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>
---
 arch/i386/kernel/apm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/i386/kernel/apm.c b/arch/i386/kernel/apm.c
index 47001d5..f02a8ac 100644
--- a/arch/i386/kernel/apm.c
+++ b/arch/i386/kernel/apm.c
@@ -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)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arch/i386/kernel/apm.c: apm_init() warning fix
  2007-07-29  2:49 [PATCH] arch/i386/kernel/apm.c: apm_init() warning fix Eugene Teo
@ 2007-07-29  4:49 ` Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2007-07-29  4:49 UTC (permalink / raw)
  To: Eugene Teo; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

On Sun, 29 Jul 2007 10:49:18 +0800 Eugene Teo <eugeneteo@kernel.sg> 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'.
> 
> Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-29  4:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29  2:49 [PATCH] arch/i386/kernel/apm.c: apm_init() warning fix Eugene Teo
2007-07-29  4:49 ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox