summaryrefslogtreecommitdiff
path: root/xen-hvm.c
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2015-03-13 15:36:58 -0400
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2015-09-10 12:04:29 +0000
commite763addd19e59dbd1986d4b0faae63dcb9a0f6aa (patch)
tree11e9695a97358328a051f9b170090545fd20325f /xen-hvm.c
parent5cec8aa38cc3b7c8cf9ce66abdda28b3598e2d88 (diff)
downloadqemu-e763addd19e59dbd1986d4b0faae63dcb9a0f6aa.tar.gz
qemu-e763addd19e59dbd1986d4b0faae63dcb9a0f6aa.tar.bz2
qemu-e763addd19e59dbd1986d4b0faae63dcb9a0f6aa.zip
xen-hvm: When using xc_domain_add_to_physmap also include errno when reporting
.errors - as it will most likely have the proper error value. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen-hvm.c')
-rw-r--r--xen-hvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen-hvm.c b/xen-hvm.c
index d17d3f33bc..0f81f7fd9c 100644
--- a/xen-hvm.c
+++ b/xen-hvm.c
@@ -348,7 +348,7 @@ go_physmap:
rc = xc_domain_add_to_physmap(xen_xc, xen_domid, XENMAPSPACE_gmfn, idx, gpfn);
if (rc) {
DPRINTF("add_to_physmap MFN %"PRI_xen_pfn" to PFN %"
- PRI_xen_pfn" failed: %d\n", idx, gpfn, rc);
+ PRI_xen_pfn" failed: %d (errno: %d)\n", idx, gpfn, rc, errno);
return -rc;
}
}
@@ -425,7 +425,7 @@ static int xen_remove_from_physmap(XenIOState *state,
rc = xc_domain_add_to_physmap(xen_xc, xen_domid, XENMAPSPACE_gmfn, idx, gpfn);
if (rc) {
fprintf(stderr, "add_to_physmap MFN %"PRI_xen_pfn" to PFN %"
- PRI_xen_pfn" failed: %d\n", idx, gpfn, rc);
+ PRI_xen_pfn" failed: %d (errno: %d)\n", idx, gpfn, rc, errno);
return -rc;
}
}