diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-14 21:55:01 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-14 21:55:01 -0400 |
commit | 95a13f7b33be87d85d8e6652126a3f4d64d164db (patch) | |
tree | f21f2f0655e2205029a9edb16d7dca4b8d4e033a /fs/nfs/nfs4xdr.c | |
parent | 96dcadc2fdd111dca90d559f189a30c65394451a (diff) |
NFS: Fix a compile error when !defined NFS_DEBUG
We should use the 'ifdebug' wrapper rather than trying to inline
tests of nfs_debug, so that the code compiles correctly when we
don't define NFS_DEBUG.
Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index f7e064d997f6..c74fdb114b48 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -3440,7 +3440,7 @@ static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path) | |||
3440 | status = decode_opaque_inline(xdr, &component->len, &component->data); | 3440 | status = decode_opaque_inline(xdr, &component->len, &component->data); |
3441 | if (unlikely(status != 0)) | 3441 | if (unlikely(status != 0)) |
3442 | goto out_eio; | 3442 | goto out_eio; |
3443 | if (unlikely(nfs_debug & NFSDBG_XDR)) | 3443 | ifdebug (XDR) |
3444 | pr_cont("%s%.*s ", | 3444 | pr_cont("%s%.*s ", |
3445 | (path->ncomponents != n ? "/ " : ""), | 3445 | (path->ncomponents != n ? "/ " : ""), |
3446 | component->len, component->data); | 3446 | component->len, component->data); |