Skip to contentSkip to conversation

nvmf: Correct log messages when polling recv CQ

PATCH In review Roland Dreier 2 participants 2 messages Sep 12, 2016 – Sep 13, 2016

lore
Share & tools
lore

Roland Dreier

author
#0 lore raw

PATCH 1/1 nvmf: Correct log messages when polling recv CQ

From: Roland Dreier <roland(a)purestorage.com>

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 <roland(a)purestorage.com>
---
 lib/nvmf/rdma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/nvmf/rdma.c +2 -2
index 367109e13fd8..9671cdca062b 100644
@@ -1386,13 +1386,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;
 		}
Signature · 1 line
2.9.3
#1 lore raw
Quoted 4 lines · Roland Dreier

From: Roland Dreier <roland(a)purestorage.com>

Fix copy-and-paste errors - when polling the recv CQ, we should print "Recv" instead of "Send" in log messages.

[...]

Looks good - I have applied this patch.

Thanks,
-- Daniel