[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] xen-hvm: use errno in error message
From: |
Wei Liu |
Subject: |
[Qemu-devel] [PATCH] xen-hvm: use errno in error message |
Date: |
Wed, 27 Sep 2017 17:10:09 +0100 |
The error code is encoding in errno, not rc.
Signed-off-by: Wei Liu <address@hidden>
---
Cc: Stefano Stabellini <address@hidden>
Cc: Anthony PERARD <address@hidden>
---
hw/i386/xen/xen-hvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c
index d9ccd5d0d6..f79816a649 100644
--- a/hw/i386/xen/xen-hvm.c
+++ b/hw/i386/xen/xen-hvm.c
@@ -1446,7 +1446,7 @@ void xen_hvm_modified_memory(ram_addr_t start, ram_addr_t
length)
if (rc) {
fprintf(stderr,
"%s failed for "RAM_ADDR_FMT" ("RAM_ADDR_FMT"): %i, %s\n",
- __func__, start, nb_pages, rc, strerror(-rc));
+ __func__, start, nb_pages, rc, strerror(errno));
}
}
}
--
2.11.0
- [Qemu-devel] [PATCH] xen-hvm: use errno in error message,
Wei Liu <=