]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async/rdma: show port state with string
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 19 Aug 2019 02:48:52 +0000 (10:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 23 Aug 2019 06:36:05 +0000 (14:36 +0800)
Show the port state with string is more easy to be read through
value.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc

index 3d83a617d48a0fbe3d1849f696964c7b14b14411..9e27fe72abbde4f4cf7141438f8403d80e001e0e 100644 (file)
@@ -143,7 +143,8 @@ void Device::binding_port(CephContext *cct, int port_num) {
       ldout(cct, 1) << __func__ << " found active port " << static_cast<int>(port_id) << dendl;
       break;
     } else {
-      ldout(cct, 10) << __func__ << " port " << port_id << " is not what we want. state: " << port->get_port_attr()->state << ")"<< dendl;
+      ldout(cct, 10) << __func__ << " port " << port_id << " is not what we want. state: "
+                     << ibv_port_state_str(port->get_port_attr()->state) << dendl;
       delete port;
     }
   }