LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] x86/visws: fix printk format warnings
@ 2008-02-11 18:05 Randy Dunlap
2008-02-29 16:52 ` Andrey Panin
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-02-11 18:05 UTC (permalink / raw)
To: lkml; +Cc: pazke, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix visws printk format warnings:
/local/linsrc/linux-2.6.24-git15/arch/x86/mach-visws/traps.c:50: warning: format '%#lx' expects type 'long unsigned int', but argument 2 has type 'u32'
/local/linsrc/linux-2.6.24-git15/arch/x86/mach-visws/traps.c:50: warning: format '%#lx' expects type 'long unsigned int', but argument 3 has type 'u32'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
arch/x86/mach-visws/traps.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-2.6.24-git15.orig/arch/x86/mach-visws/traps.c
+++ linux-2.6.24-git15/arch/x86/mach-visws/traps.c
@@ -46,8 +46,9 @@ static __init void cobalt_init(void)
*/
set_fixmap(FIX_APIC_BASE, APIC_DEFAULT_PHYS_BASE);
setup_local_APIC();
- printk(KERN_INFO "Local APIC Version %#lx, ID %#lx\n",
- apic_read(APIC_LVR), apic_read(APIC_ID));
+ printk(KERN_INFO "Local APIC Version %#x, ID %#x\n",
+ (unsigned int)apic_read(APIC_LVR),
+ (unsigned int)apic_read(APIC_ID));
set_fixmap(FIX_CO_CPU, CO_CPU_PHYS);
set_fixmap(FIX_CO_APIC, CO_APIC_PHYS);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86/visws: fix printk format warnings
2008-02-11 18:05 [PATCH] x86/visws: fix printk format warnings Randy Dunlap
@ 2008-02-29 16:52 ` Andrey Panin
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Panin @ 2008-02-29 16:52 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]
On 042, 02 11, 2008 at 10:05:09AM -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix visws printk format warnings:
>
> /local/linsrc/linux-2.6.24-git15/arch/x86/mach-visws/traps.c:50: warning: format '%#lx' expects type 'long unsigned int', but argument 2 has type 'u32'
> /local/linsrc/linux-2.6.24-git15/arch/x86/mach-visws/traps.c:50: warning: format '%#lx' expects type 'long unsigned int', but argument 3 has type 'u32'
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
> arch/x86/mach-visws/traps.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> --- linux-2.6.24-git15.orig/arch/x86/mach-visws/traps.c
> +++ linux-2.6.24-git15/arch/x86/mach-visws/traps.c
> @@ -46,8 +46,9 @@ static __init void cobalt_init(void)
> */
> set_fixmap(FIX_APIC_BASE, APIC_DEFAULT_PHYS_BASE);
> setup_local_APIC();
> - printk(KERN_INFO "Local APIC Version %#lx, ID %#lx\n",
> - apic_read(APIC_LVR), apic_read(APIC_ID));
> + printk(KERN_INFO "Local APIC Version %#x, ID %#x\n",
> + (unsigned int)apic_read(APIC_LVR),
> + (unsigned int)apic_read(APIC_ID));
>
> set_fixmap(FIX_CO_CPU, CO_CPU_PHYS);
> set_fixmap(FIX_CO_APIC, CO_APIC_PHYS);
Sorry for so late answer, I missed your mail somehow :(
Acked-By: Andrey Panin <pazke@donpac.ru>
--
Andrey Panin | Linux and UNIX system administrator
pazke@donpac.ru | PGP key: wwwkeys.pgp.net
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-29 18:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-11 18:05 [PATCH] x86/visws: fix printk format warnings Randy Dunlap
2008-02-29 16:52 ` Andrey Panin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).