summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Jensen2021-02-06 22:59:26 +0100
committerKlaus Jensen2021-03-09 11:00:57 +0100
commit569dbe19c415865a3b2a1ca806f780d1bd5da2db (patch)
tree9d442060414b332ad7bc8b425628a0f335d6f97c
parenthw/block/nvme: remove block accounting for write zeroes (diff)
downloadqemu-569dbe19c415865a3b2a1ca806f780d1bd5da2db.tar.gz
qemu-569dbe19c415865a3b2a1ca806f780d1bd5da2db.tar.xz
qemu-569dbe19c415865a3b2a1ca806f780d1bd5da2db.zip
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>
-rw-r--r--hw/block/nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 88e8008985..8f27fa7450 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -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);