From: Fabio Estevam <festevam@gmail.com>
To: akpm@linux-foundation.org
Cc: rientjes@google.com, linux-mm@kvack.org,
Fabio Estevam <fabio.estevam@freescale.com>
Subject: [PATCH] mm, mempool: use '%zu' for printing 'size_t' variable
Date: Thu, 2 Apr 2015 08:49:41 -0300 [thread overview]
Message-ID: <1427975381-5044-1-git-send-email-festevam@gmail.com> (raw)
From: Fabio Estevam <fabio.estevam@freescale.com>
Commit 8b65aaa9c53404 ("mm, mempool: poison elements backed by page allocator")
caused the following build warning on ARM:
mm/mempool.c:31:2: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Wformat]
Use '%zu' for printing 'size_t' variable.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
mm/mempool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mempool.c b/mm/mempool.c
index 436628d..5a2f4f0 100644
--- a/mm/mempool.c
+++ b/mm/mempool.c
@@ -28,7 +28,7 @@ static void poison_error(mempool_t *pool, void *element, size_t size,
int i;
pr_err("BUG: mempool element poison mismatch\n");
- pr_err("Mempool %p size %ld\n", pool, size);
+ pr_err("Mempool %p size %zu\n", pool, size);
pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : "");
for (i = start; i < end; i++)
pr_cont("%x ", *(u8 *)(element + i));
--
1.9.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2015-04-02 11:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 11:49 Fabio Estevam [this message]
2015-04-02 21:38 ` David Rientjes
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=1427975381-5044-1-git-send-email-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=fabio.estevam@freescale.com \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.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