Whamcloud - gitweb
b=16359 _debug_req fix
authorcliff.white@oracle.com <cliff.white@oracle.com>
Thu, 23 Dec 2010 22:38:39 +0000 (01:38 +0300)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Thu, 23 Dec 2010 22:51:19 +0000 (01:51 +0300)
i=vitaly
i=panda

lustre/ptlrpc/pack_generic.c

index da4719f..03dbcca 100644 (file)
@@ -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 : "<?>",