nvme: add missing \n in ctrlr init fail log
Additionally, print the string representation of the ctrlr state, as it makes debugging init failures much easier. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I572ef3d6f7d5bbd52039a8872733578c92be4c4a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15305 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
88f16162e7
commit
cff39ee7d5
@ -4011,8 +4011,8 @@ nvme_ctrlr_process_init(struct spdk_nvme_ctrlr *ctrlr)
|
||||
}
|
||||
|
||||
if (rc) {
|
||||
NVME_CTRLR_ERRLOG(ctrlr, "Ctrlr operation failed with error: %d, ctrlr state: %d",
|
||||
rc, ctrlr->state);
|
||||
NVME_CTRLR_ERRLOG(ctrlr, "Ctrlr operation failed with error: %d, ctrlr state: %d (%s)\n",
|
||||
rc, ctrlr->state, nvme_ctrlr_state_string(ctrlr->state));
|
||||
}
|
||||
|
||||
/* Note: we use the ticks captured when we entered this function.
|
||||
|
Loading…
Reference in New Issue
Block a user