aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_gnttab.c
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-06-06 09:28:15 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-06-06 09:28:15 +0000
commit4f7a49d8d0836ab8183893f79ac5fb7731cac32c (patch)
tree07683f87089b574fb33779efd259684411534314 /tools/libxc/xc_gnttab.c
parentb94f8b38619cf08ad85832cbf207ff2952a605eb (diff)
downloadxen-4f7a49d8d0836ab8183893f79ac5fb7731cac32c.tar.gz
xen-4f7a49d8d0836ab8183893f79ac5fb7731cac32c.tar.bz2
xen-4f7a49d8d0836ab8183893f79ac5fb7731cac32c.zip
bitkeeper revision 1.1681 (42a4172fYhXBx6d4aXa2ofB5qVB2Ww)
xc_gnttab.c, xc_evtchn.c: Cleanup error message printing and error exit code path. xc_vmx_build.c, xc_private.c, xc_plan9_build.c, xc_linux_build.c: Cleanup error message printing. Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/libxc/xc_gnttab.c')
-rw-r--r--tools/libxc/xc_gnttab.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/libxc/xc_gnttab.c b/tools/libxc/xc_gnttab.c
index 2601c30f60..ad23e68013 100644
--- a/tools/libxc/xc_gnttab.c
+++ b/tools/libxc/xc_gnttab.c
@@ -26,18 +26,16 @@ do_gnttab_op( int xc_handle,
if ( mlock(op, sizeof(*op)) != 0 )
{
- PERROR("Could not lock memory for Xen hypercall");
- goto out1;
+ PERROR("do_gnttab_op: op mlock failed");
+ goto out;
}
if ( (ret = do_xen_hypercall(xc_handle, &hypercall)) < 0 )
- {
- printf("do_gnttab_op: hypercall returned error %d\n", ret);
- goto out2;
- }
+ ERROR("do_gnttab_op: HYPERVISOR_grant_table_op failed: %d", ret);
- out2: (void)munlock(op, sizeof(*op));
- out1: return ret;
+ (void)munlock(op, sizeof(*op));
+ out:
+ return ret;
}