From: Geert Uytterhoeven <geert@linux-m68k•org>
To: Kent Overstreet <koverstreet@google•com>
Cc: linux-bcache@vger•kernel.org, linux-kernel@vger•kernel.org,
linux-next@vger•kernel.org,
Geert Uytterhoeven <geert@linux-m68k•org>
Subject: [PATCH -next 3/3] bcache: Use %zu to format size_t
Date: Wed, 27 Mar 2013 18:56:30 +0100 [thread overview]
Message-ID: <1364406990-20541-3-git-send-email-geert@linux-m68k.org> (raw)
In-Reply-To: <1364406990-20541-1-git-send-email-geert@linux-m68k.org>
m68k/allmodconfig:
drivers/md/bcache/debug.c: In function ‘bch_pbtree’:
drivers/md/bcache/debug.c:86: warning: format ‘%li’ expects type ‘long int’, but argument 4 has type ‘size_t’
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k•org>
---
drivers/md/bcache/debug.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c
index 141a5ca..210c985 100644
--- a/drivers/md/bcache/debug.c
+++ b/drivers/md/bcache/debug.c
@@ -82,7 +82,7 @@ struct keyprint_hack bch_pbtree(const struct btree *b)
{
struct keyprint_hack r;
- snprintf(r.s, 40, "%li level %i/%i", PTR_BUCKET_NR(b->c, &b->key, 0),
+ snprintf(r.s, 40, "%zu level %i/%i", PTR_BUCKET_NR(b->c, &b->key, 0),
b->level, b->c->root ? b->c->root->level : -1);
return r;
}
--
1.7.0.4
next prev parent reply other threads:[~2013-03-27 17:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-27 17:56 [PATCH -next 1/3] bcache: Add missing #include <linux/prefetch.h> Geert Uytterhoeven
2013-03-27 17:56 ` [PATCH -next 2/3] bcache: Add missing ULL suffix for 64-bit constants Geert Uytterhoeven
2013-03-27 17:56 ` Geert Uytterhoeven [this message]
[not found] ` <1364406990-20541-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2013-03-27 18:21 ` [PATCH -next 1/3] bcache: Add missing #include <linux/prefetch.h> Kent Overstreet
[not found] ` <20130327182150.GB25906-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2013-03-27 18:27 ` Randy Dunlap
2013-03-27 19:50 ` Kent Overstreet
2013-04-07 21:15 ` David Rientjes
2013-04-08 21:00 ` Kent Overstreet
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=1364406990-20541-3-git-send-email-geert@linux-m68k.org \
--to=geert@linux-m68k$(echo .)org \
--cc=koverstreet@google$(echo .)com \
--cc=linux-bcache@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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