From: Changcheng Liu Date: Mon, 19 Aug 2019 02:48:52 +0000 (+0800) Subject: msg/async/rdma: show port state with string X-Git-Tag: v15.1.0~1781^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c86e927888292e205c86b1747a4239377ed5d91f;p=ceph.git msg/async/rdma: show port state with string Show the port state with string is more easy to be read through value. Signed-off-by: Changcheng Liu --- diff --git a/src/msg/async/rdma/Infiniband.cc b/src/msg/async/rdma/Infiniband.cc index 3d83a617d48..9e27fe72abb 100644 --- a/src/msg/async/rdma/Infiniband.cc +++ b/src/msg/async/rdma/Infiniband.cc @@ -143,7 +143,8 @@ void Device::binding_port(CephContext *cct, int port_num) { ldout(cct, 1) << __func__ << " found active port " << static_cast(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; } }