Instead of just the return value. The other calls check for the negative value and don't print any of the data - so this patch just updates on call-site to include the proper error value.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> --- tools/libxc/xc_domain_restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_restore.c index a382701..89e5a29 100644 --- a/tools/libxc/xc_domain_restore.c +++ b/tools/libxc/xc_domain_restore.c @@ -2020,7 +2020,7 @@ int xc_domain_restore(xc_interface *xch, int io_fd, uint32_t dom, { if ( (frc = xc_domain_decrease_reservation(xch, dom, nr_frees, 0, tailbuf.u.pv.pfntab)) != nr_frees ) { - PERROR("Could not decrease reservation : %d", frc); + PERROR("Could not decrease reservation : %d", errno); goto out; } else -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel