diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-11-21 05:28:50 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-11-23 14:15:31 -0500 |
commit | d3f03403a8735cebfcc16db4edfbf07c5c7421f5 (patch) | |
tree | 043dff22dbba312d9daa1d64523e0ef45eb811f2 /fs/nfsd | |
parent | c4cb897462c93ba09543d912344c29a26c92eb31 (diff) |
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 <dan.carpenter@oracle.com>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 0d30a36bbae6..9f6beb8e9918 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2240,7 +2240,8 @@ nfsd4_store_cache_entry(struct nfsd4_compoundres *resp) | |||
2240 | base = resp->cstate.data_offset; | 2240 | base = resp->cstate.data_offset; |
2241 | slot->sl_datalen = buf->len - base; | 2241 | slot->sl_datalen = buf->len - base; |
2242 | if (read_bytes_from_xdr_buf(buf, base, slot->sl_data, slot->sl_datalen)) | 2242 | if (read_bytes_from_xdr_buf(buf, base, slot->sl_data, slot->sl_datalen)) |
2243 | WARN("%s: sessions DRC could not cache compound\n", __func__); | 2243 | WARN(1, "%s: sessions DRC could not cache compound\n", |
2244 | __func__); | ||
2244 | return; | 2245 | return; |
2245 | } | 2246 | } |
2246 | 2247 | ||