nvme: printf info after error
Change-Id: I1812f4aa46ff1f2e464f40346bd012fe1f504011 Signed-off-by: Sun Zhenyuan <sunzhenyuan@baidu.com> Reviewed-on: https://review.gerrithub.io/425467 Reviewed-by: GangCao <gang.cao@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
b92d1877cc
commit
bf14394205
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user