Commit 8a7dc4b0 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

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: default avatarRandy Dunlap <rdunlap@xenotime.net>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-nfs@vger.kernel.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fbf71762
...@@ -577,7 +577,7 @@ cld_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) ...@@ -577,7 +577,7 @@ cld_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
struct cld_net *cn = nn->cld_net; struct cld_net *cn = nn->cld_net;
if (mlen != sizeof(*cmsg)) { 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)); sizeof(*cmsg));
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment