]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma: convert port_id from type uint8_t to int for output
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 14 Aug 2019 06:18:33 +0000 (14:18 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 23 Aug 2019 06:35:52 +0000 (14:35 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc

index c478986c3bb6a995fa8b1bde21849455b5ce6a0e..3d83a617d48a0fbe3d1849f696964c7b14b14411 100644 (file)
@@ -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<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;