From: Changcheng Liu Date: Wed, 14 Aug 2019 06:18:33 +0000 (+0800) Subject: msg/async/rdma: convert port_id from type uint8_t to int for output X-Git-Tag: v15.1.0~1781^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b61a48c197ac0450ecb1e43d39da021a0e11bdc0;p=ceph.git msg/async/rdma: convert port_id from type uint8_t to int for output Signed-off-by: Changcheng Liu --- diff --git a/src/msg/async/rdma/Infiniband.cc b/src/msg/async/rdma/Infiniband.cc index c478986c3bb6a..3d83a617d48a0 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;