aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2021-02-06 22:59:26 +0100
committerKlaus Jensen <k.jensen@samsung.com>2021-03-09 11:00:57 +0100
commit569dbe19c415865a3b2a1ca806f780d1bd5da2db (patch)
tree9d442060414b332ad7bc8b425628a0f335d6f97c /hw
parentd90ba23a846f8c9cd8d238e8391e6be5881cddb4 (diff)
downloadqemu-569dbe19c415865a3b2a1ca806f780d1bd5da2db.zip
qemu-569dbe19c415865a3b2a1ca806f780d1bd5da2db.tar.gz
qemu-569dbe19c415865a3b2a1ca806f780d1bd5da2db.tar.bz2
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>
Diffstat (limited to 'hw')
-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 88e8008..8f27fa7 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);