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:
Klaus Jensen 2021-02-06 22:59:26 +01:00
parent d90ba23a84
commit 569dbe19c4

View File

@ -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);