diff options
author | Ross Lagerwall <ross.lagerwall@citrix.com> | 2017-10-11 16:52:03 +0100 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2017-10-26 14:26:48 -0700 |
commit | 7cdcca725b6bfc96634c15e3f74ae4b148cf9c40 (patch) | |
tree | 46bf1668c8b6be9aa6f513a44359c775f3892dec /hw | |
parent | e38c3e86dfffe3cc806d051b9deeab31836b196a (diff) | |
download | qemu-7cdcca725b6bfc96634c15e3f74ae4b148cf9c40.zip qemu-7cdcca725b6bfc96634c15e3f74ae4b148cf9c40.tar.gz qemu-7cdcca725b6bfc96634c15e3f74ae4b148cf9c40.tar.bz2 |
xen: Log errno rather than return value
xen_modified_memory() sets errno to communicate what went wrong so log
this rather than the return value which is not interesting.
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/i386/xen/xen-hvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c index d9ccd5d..8028bed 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, errno, strerror(errno)); } } } |