Show the command return status code along with details with the
help of nvme_show_status instead of printing the err.
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
if (!err)
nvme_show_resv_report(status, size, cfg.cdw11, flags);
else if (err > 0)
- fprintf(stderr, "NVME IO command error:%04x\n", err);
+ nvme_show_status(err);
else
perror("reservation report");
free(status);
if (!err)
nvme_show_lba_status(buf, buf_len, flags);
else if (err > 0)
- fprintf(stderr, "NVME command error:%04x\n", err);
+ nvme_show_status(err);
else
perror("get lba status");
free(buf);