From 5467a860213d454759bdfad91503691d6692b317 Mon Sep 17 00:00:00 2001 From: "cliff.white@oracle.com" Date: Fri, 24 Dec 2010 01:38:39 +0300 Subject: [PATCH] b=16359 _debug_req fix i=vitaly i=panda --- lustre/ptlrpc/pack_generic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index da4719f..03dbcca 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -2254,7 +2254,8 @@ void _debug_req(struct ptlrpc_request *req, __u32 mask, "fl "REQ_FLAGS_FMT"/%x/%x rc %d/%d\n", req, req->rq_xid, req->rq_transno, req->rq_reqmsg ? lustre_msg_get_transno(req->rq_reqmsg) : 0, - req->rq_reqmsg ? lustre_msg_get_opc(req->rq_reqmsg) : -1, + req->rq_reqmsg && req_ptlrpc_body_swabbed(req) ? + lustre_msg_get_opc(req->rq_reqmsg) : -1, req->rq_import ? obd2cli_tgt(req->rq_import->imp_obd) : req->rq_export ? (char*)req->rq_export->exp_client_uuid.uuid : "", -- 1.8.3.1