From c86e927888292e205c86b1747a4239377ed5d91f Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Mon, 19 Aug 2019 10:48:52 +0800 Subject: [PATCH] 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 --- src/msg/async/rdma/Infiniband.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.39.5