From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Russell King <linux@arm.linux.org.uk>,
Andreas Fenkart <andreas.fenkart@streamunlimited.com>,
Linus Walleij <linus.walleij@stericsson.com>,
Tony Lindgren <tony@atomide.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] ARM: (trivial) fix format warning in arch/arm/mm/init.c
Date: Mon, 20 Sep 2010 01:55:26 +0200 [thread overview]
Message-ID: <20100919235526.GA31892@rere.qmqm.pl> (raw)
/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@rere.qmqm.pl>
---
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
reply other threads:[~2010-09-20 0:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100919235526.GA31892@rere.qmqm.pl \
--to=mirq-linux@rere.qmqm.pl \
--cc=akpm@linux-foundation.org \
--cc=andreas.fenkart@streamunlimited.com \
--cc=linus.walleij@stericsson.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).