[PATCH] ceph: Use %zu to format size_t in ceph_fill_inline_data()

From: Geert Uytterhoeven
Date: Sun Dec 21 2014 - 05:56:30 EST


On 32-bit, where size_t is unsigned int:

fs/ceph/addr.c: In function âceph_fill_inline_dataâ:
fs/ceph/addr.c:1419: warning: format â%luâ expects type âlong unsigned intâ, but argument 10 has type âsize_tâ

Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
fs/ceph/addr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index f5013d92a7e6b73d..c81c0e004588b9e2 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -1416,7 +1416,7 @@ void ceph_fill_inline_data(struct inode *inode, struct page *locked_page,
}
}

- dout("fill_inline_data %p %llx.%llx len %lu locked_page %p\n",
+ dout("fill_inline_data %p %llx.%llx len %zu locked_page %p\n",
inode, ceph_vinop(inode), len, locked_page);

if (len > 0) {
--
1.9.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/