[PATCH] ARM: (trivial) fix format warning in arch/arm/mm/init.c

From: Michał Mirosław
Date: Sun Sep 19 2010 - 20:06:14 EST


/mnt/src/linux-git/arch/arm/mm/init.c: In function âmem_initâ:
/mnt/src/linux-git/arch/arm/mm/init.c:548:4: warning: format â%4dâ expects type âintâ, but argument 22 has type âlong intâ
/mnt/src/linux-git/arch/arm/mm/init.c:548:4: warning: format â%4dâ expects type âintâ, but argument 25 has type âlong intâ
/mnt/src/linux-git/arch/arm/mm/init.c:548:4: warning: format â%4dâ expects type âintâ, but argument 28 has type âlong intâ

(with gcc-4.5.1)

Signed-off-by: MichaÅ MirosÅaw <mirq-linux@xxxxxxxxxxxx>
---
arch/arm/mm/init.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

Patch against current linux.git (after 2.6.36-rc4).


diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 7185b00..009797d 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -521,9 +521,9 @@ void __init mem_init(void)
" pkmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
#endif
" modules : 0x%08lx - 0x%08lx (%4ld MB)\n"
- " .init : 0x%p" " - 0x%p" " (%4d kB)\n"
- " .text : 0x%p" " - 0x%p" " (%4d kB)\n"
- " .data : 0x%p" " - 0x%p" " (%4d kB)\n",
+ " .init : 0x%p" " - 0x%p" " (%4ld kB)\n"
+ " .text : 0x%p" " - 0x%p" " (%4ld kB)\n"
+ " .data : 0x%p" " - 0x%p" " (%4ld kB)\n",

MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) +
(PAGE_SIZE)),
--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/