]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
xen: Log errno rather than return value
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 11 Oct 2017 15:52:03 +0000 (16:52 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 26 Oct 2017 21:26:48 +0000 (14:26 -0700)
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>
hw/i386/xen/xen-hvm.c

index d9ccd5d0d6be94986a63061574c8932ba65f7c5c..8028bed6fd2c052df9a409275168201f138e7a38 100644 (file)
@@ -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));
         }
     }
 }