hw/block/nvme: fix strerror printing
Fix missing sign inversion. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
d90ba23a84
commit
569dbe19c4
@ -1164,7 +1164,7 @@ static void nvme_aio_err(NvmeRequest *req, int ret)
|
||||
break;
|
||||
}
|
||||
|
||||
trace_pci_nvme_err_aio(nvme_cid(req), strerror(ret), status);
|
||||
trace_pci_nvme_err_aio(nvme_cid(req), strerror(-ret), status);
|
||||
|
||||
error_setg_errno(&local_err, -ret, "aio failed");
|
||||
error_report_err(local_err);
|
||||
|
Loading…
Reference in New Issue
Block a user