Commit bf143942 authored by Sun Zhenyuan's avatar Sun Zhenyuan Committed by Jim Harris
Browse files

nvme: printf info after error



Change-Id: I1812f4aa46ff1f2e464f40346bd012fe1f504011
Signed-off-by: default avatarSun Zhenyuan <sunzhenyuan@baidu.com>
Reviewed-on: https://review.gerrithub.io/425467


Reviewed-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
parent b92d1877
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -443,6 +443,8 @@ _nvme_ns_cmd_rw(struct spdk_nvme_ns *ns, struct spdk_nvme_qpair *qpair,

	if (io_flags & 0xFFFF) {
		/* The bottom 16 bits must be empty */
		SPDK_ERRLOG("io_flags 0x%x bottom 16 bits is not empty\n",
			    io_flags);
		return NULL;
	}

+2 −0
Original line number Diff line number Diff line
@@ -451,6 +451,8 @@ nvme_qpair_init(struct spdk_nvme_qpair *qpair, uint16_t id,
	qpair->req_buf = spdk_zmalloc(req_size_padded * num_requests, 64, NULL,
				      SPDK_ENV_SOCKET_ID_ANY, SPDK_MALLOC_SHARE);
	if (qpair->req_buf == NULL) {
		SPDK_ERRLOG("no memory to allocate qpair(cntlid:0x%x sqid:%d) req_buf with %d request\n",
			    ctrlr->cntlid, qpair->id, num_requests);
		return -ENOMEM;
	}