[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 10/13] libxc: If xc_domain_add_to_physmap fails, include errno value
Instead of just the return value. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> Acked-by Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/libxc/xc_dom_x86.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c index af0c9f4..3301f53 100644 --- a/tools/libxc/xc_dom_x86.c +++ b/tools/libxc/xc_dom_x86.c @@ -946,7 +946,8 @@ static int map_grant_table_frames(struct xc_dom_image *dom) } xc_dom_panic(dom->xch, XC_INTERNAL_ERROR, "%s: mapping grant tables failed " "(pfn=0x%" PRIpfn - ", rc=%d)", __FUNCTION__, dom->p2m_size + i, rc); + ", rc=%d, errno=%d)", __FUNCTION__, dom->p2m_size + i, + rc, errno); return rc; } } @@ -999,8 +1000,8 @@ int arch_setup_bootlate(struct xc_dom_image *dom) if ( rc != 0 ) { xc_dom_panic(dom->xch, XC_INTERNAL_ERROR, "%s: mapping" - " shared_info failed (pfn=0x%" PRIpfn ", rc=%d)", - __FUNCTION__, dom->shared_info_pfn, rc); + " shared_info failed (pfn=0x%" PRIpfn ", rc=%d, errno: %d)", + __FUNCTION__, dom->shared_info_pfn, rc, errno); return rc; } -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |