From: Randy Dunlap Date: Mon, 30 Apr 2012 19:25:31 +0000 (-0700) Subject: nfsd: fix nfs4recover.c printk format warning X-Git-Tag: upstream/snapshot3+hdmi~7588 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a7dc4b04b22be285ea5bef7d01a02f91e30d562;hp=fbf717629ff03f110f177d244933276423f99a27;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git nfsd: fix nfs4recover.c printk format warning Fix printk format warnings -- both items are size_t, so use %zu to print them. fs/nfsd/nfs4recover.c:580:3: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t' fs/nfsd/nfs4recover.c:580:3: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int' Signed-off-by: Randy Dunlap Cc: "J. Bruce Fields" Cc: linux-nfs@vger.kernel.org Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index 4767429..ed3f920 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c @@ -577,7 +577,7 @@ cld_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) struct cld_net *cn = nn->cld_net; if (mlen != sizeof(*cmsg)) { - dprintk("%s: got %lu bytes, expected %lu\n", __func__, mlen, + dprintk("%s: got %zu bytes, expected %zu\n", __func__, mlen, sizeof(*cmsg)); return -EINVAL; }