From: Konrad Rzeszutek Wilk Subject: [PATCH RFC 11/14] libxl: Print xc_domain_decrease_reservation proper errno value. Date: Fri, 13 Mar 2015 15:31:20 -0400 Message-ID: <1426275083-8454-12-git-send-email-konrad.wilk@oracle.com> References: <1426275083-8454-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YWVJO-0006hm-D6 for xen-devel@lists.xenproject.org; Fri, 13 Mar 2015 19:31:58 +0000 In-Reply-To: <1426275083-8454-1-git-send-email-konrad.wilk@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com Cc: Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org 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 --- 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