nvmet-rdma: align to generic ib_event logging helper
authorMax Gurtovoy <maxg@mellanox.com>
Wed, 23 Nov 2016 09:38:47 +0000 (11:38 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Tue, 6 Dec 2016 08:17:03 +0000 (10:17 +0200)
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/rdma.c

index 35b97a898ecd71e1624bfd3378a89f48be828c89..6c1c3680c5e1112bc3d8a7ad0657989eced5f013 100644 (file)
@@ -1130,7 +1130,8 @@ static void nvmet_rdma_qp_event(struct ib_event *event, void *priv)
                rdma_notify(queue->cm_id, event->event);
                break;
        default:
-               pr_err("received unrecognized IB QP event %d\n", event->event);
+               pr_err("received IB QP event: %s (%d)\n",
+                      ib_event_msg(event->event), event->event);
                break;
        }
 }