diff --git a/include/spdk_internal/nvme_tcp.h b/include/spdk_internal/nvme_tcp.h index 3f54b76ee..45e8def51 100644 --- a/include/spdk_internal/nvme_tcp.h +++ b/include/spdk_internal/nvme_tcp.h @@ -481,10 +481,7 @@ nvme_tcp_read_data(struct spdk_sock *sock, int bytes, } /* For connect reset issue, do not output error log */ - if (errno == ECONNRESET) { - SPDK_DEBUGLOG(SPDK_LOG_NVME, "spdk_sock_recv() failed, errno %d: %s\n", - errno, spdk_strerror(errno)); - } else { + if (errno != ECONNRESET) { SPDK_ERRLOG("spdk_sock_recv() failed, errno %d: %s\n", errno, spdk_strerror(errno)); } @@ -520,10 +517,7 @@ nvme_tcp_readv_data(struct spdk_sock *sock, struct iovec *iov, int iovcnt) } /* For connect reset issue, do not output error log */ - if (errno == ECONNRESET) { - SPDK_DEBUGLOG(SPDK_LOG_NVME, "spdk_sock_readv() failed, errno %d: %s\n", - errno, spdk_strerror(errno)); - } else { + if (errno != ECONNRESET) { SPDK_ERRLOG("spdk_sock_readv() failed, errno %d: %s\n", errno, spdk_strerror(errno)); } diff --git a/test/unit/lib/nvmf/tcp.c/tcp_ut.c b/test/unit/lib/nvmf/tcp.c/tcp_ut.c index e3384578f..88e0c2dd2 100644 --- a/test/unit/lib/nvmf/tcp.c/tcp_ut.c +++ b/test/unit/lib/nvmf/tcp.c/tcp_ut.c @@ -57,7 +57,6 @@ #define UT_NUM_SHARED_BUFFERS 128 SPDK_LOG_REGISTER_COMPONENT("nvmf", SPDK_LOG_NVMF) -SPDK_LOG_REGISTER_COMPONENT("nvme", SPDK_LOG_NVME) DEFINE_STUB(spdk_nvmf_qpair_get_listen_trid, int,