From: cliff.white@oracle.com Date: Thu, 23 Dec 2010 22:38:39 +0000 (+0300) Subject: b=16359 _debug_req fix X-Git-Tag: 2.0.59-llnl-base~8 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5467a860213d454759bdfad91503691d6692b317;p=fs%2Flustre-release.git b=16359 _debug_req fix i=vitaly i=panda --- 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 : "",