From 4c0aab3f2af26d93399d0d703d1d61d2a6d9e5c5 Mon Sep 17 00:00:00 2001 From: Roland Dreier Date: Mon, 12 Sep 2016 14:00:48 -0700 Subject: [PATCH] nvmf: Correct log messages when polling recv CQ Fix copy-and-paste errors - when polling the recv CQ, we should print "Recv" instead of "Send" in log messages. Signed-off-by: Roland Dreier --- lib/nvmf/rdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nvmf/rdma.c b/lib/nvmf/rdma.c index b4dc2771a..a10cd4083 100644 --- a/lib/nvmf/rdma.c +++ b/lib/nvmf/rdma.c @@ -1373,13 +1373,13 @@ spdk_nvmf_rdma_poll(struct spdk_nvmf_conn *conn) if (rc == 0) { break; } else if (rc < 0) { - SPDK_ERRLOG("Error polling Send CQ! (%d): %s\n", + SPDK_ERRLOG("Error polling Recv CQ! (%d): %s\n", errno, strerror(errno)); return -1; } if (wc.status) { - SPDK_ERRLOG("Send CQ error (%d): %s\n", + SPDK_ERRLOG("Recv CQ error (%d): %s\n", wc.status, ibv_wc_status_str(wc.status)); return -1; }