From b61a48c197ac0450ecb1e43d39da021a0e11bdc0 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 14 Aug 2019 14:18:33 +0800 Subject: [PATCH] msg/async/rdma: convert port_id from type uint8_t to int for output Signed-off-by: Changcheng Liu --- src/msg/async/rdma/Infiniband.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/async/rdma/Infiniband.cc b/src/msg/async/rdma/Infiniband.cc index c478986c3bb..3d83a617d48 100644 --- a/src/msg/async/rdma/Infiniband.cc +++ b/src/msg/async/rdma/Infiniband.cc @@ -140,7 +140,7 @@ void Device::binding_port(CephContext *cct, int port_num) { Port *port = new Port(cct, ctxt, port_id); if (port_id == port_num && port->get_port_attr()->state == IBV_PORT_ACTIVE) { active_port = port; - ldout(cct, 1) << __func__ << " found active port " << port_id << dendl; + 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; -- 2.39.5