[pnfs] [PATCH 26/29] pnfs: dprint layout type in hex in client xdr functions

Benny Halevy bhalevy at panasas.com
Fri Dec 28 03:46:15 EST 2007


Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
 fs/nfs/nfs4xdr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 38d9d17..6c6bb07 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -1783,7 +1783,7 @@ static int encode_pnfs_layoutget(struct xdr_stream *xdr,
 	WRITE64(args->minlength);
 	WRITE32(args->maxcount);
 
-	dprintk("%s: 1st type:%d iomode:%d off:%lu len:%lu mc:%d\n",
+	dprintk("%s: 1st type:0x%x iomode:%d off:%lu len:%lu mc:%d\n",
 		__FUNCTION__,
 		args->type,
 		args->lseg.iomode,
@@ -5412,7 +5412,7 @@ static int decode_pnfs_layoutget(struct xdr_stream *xdr, struct rpc_rqst *req,
 	READ32(res->type);
 	READ32(res->layout.len);
 
-	dprintk("%s roff:%lu rlen:%lu riomode:%d, lo_type:%d, lo.len:%d\n",
+	dprintk("%s roff:%lu rlen:%lu riomode:%d, lo_type:0x%x, lo.len:%d\n",
 		__FUNCTION__,
 		(unsigned long)res->lseg.offset,
 		(unsigned long)res->lseg.length,
-- 
1.5.3.3



More information about the pNFS mailing list