From: Dan Carpenter Date: Sat, 21 Nov 2015 10:28:50 +0000 (+0300) Subject: nfsd: fix a warning message X-Git-Tag: v4.5-rc1~88^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3f03403a8735cebfcc16db4edfbf07c5c7421f5;p=platform%2Fkernel%2Flinux-exynos.git nfsd: fix a warning message The WARN() macro takes a condition and a format string. The condition was accidentally left out here so it just prints the function name instead of the message. Signed-off-by: Dan Carpenter Reviewed-by: Jeff Layton Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 0d30a36..9f6beb8 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -2240,7 +2240,8 @@ nfsd4_store_cache_entry(struct nfsd4_compoundres *resp) base = resp->cstate.data_offset; slot->sl_datalen = buf->len - base; if (read_bytes_from_xdr_buf(buf, base, slot->sl_data, slot->sl_datalen)) - WARN("%s: sessions DRC could not cache compound\n", __func__); + WARN(1, "%s: sessions DRC could not cache compound\n", + __func__); return; }