Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bec782b4 authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields
Browse files

nfsd: fix dprintk in nfsd4_encode_getdeviceinfo



nfserr is big-endian, so we should convert it to host-endian before
printing it.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 89dfdc96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4062,7 +4062,7 @@ nfsd4_encode_getdeviceinfo(struct nfsd4_compoundres *resp, __be32 nfserr,
	u32 starting_len = xdr->buf->len, needed_len;
	__be32 *p;

	dprintk("%s: err %d\n", __func__, nfserr);
	dprintk("%s: err %d\n", __func__, be32_to_cpu(nfserr));
	if (nfserr)
		goto out;