ia64/xen-unstable

changeset 4906:8b3e823884db

bitkeeper revision 1.1389.1.60 (4284eff8xPCiJXQdVwPYSYL7MEB5zA)

fix calls to xc_domain_getinfo()

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Fri May 13 18:20:40 2005 +0000 (2005-05-13)
parents d83084fd7e85
children 03d2d6123dd2 cacce4066cfc
files tools/libxc/xc_core.c tools/libxc/xc_linux_save.c
line diff
     1.1 --- a/tools/libxc/xc_core.c	Fri May 13 14:38:14 2005 +0000
     1.2 +++ b/tools/libxc/xc_core.c	Fri May 13 18:20:40 2005 +0000
     1.3 @@ -48,7 +48,7 @@ xc_domain_dumpcore(int xc_handle,
     1.4  		goto error_out;
     1.5  	}
     1.6  	
     1.7 -	if (xc_domain_getinfo(xc_handle, domid, 1, &info)) {
     1.8 +	if (xc_domain_getinfo(xc_handle, domid, 1, &info) != 1) {
     1.9  		PERROR("Could not get info for domain");
    1.10  		goto error_out;
    1.11  	}
     2.1 --- a/tools/libxc/xc_linux_save.c	Fri May 13 14:38:14 2005 +0000
     2.2 +++ b/tools/libxc/xc_linux_save.c	Fri May 13 18:20:40 2005 +0000
     2.3 @@ -333,9 +333,9 @@ int suspend_and_state(int xc_handle, XcI
     2.4  
     2.5  retry:
     2.6  
     2.7 -    if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) )
     2.8 +    if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) != 1)
     2.9      {
    2.10 -	xcio_error(ioctxt, "Could not get full domain info");
    2.11 +	xcio_error(ioctxt, "Could not get domain info");
    2.12  	return -1;
    2.13      }
    2.14  
    2.15 @@ -447,9 +447,9 @@ int xc_linux_save(int xc_handle, XcIOCon
    2.16          return 1;
    2.17      }
    2.18      
    2.19 -    if ( xc_domain_getinfo(xc_handle, domid, 1, &info) )
    2.20 +    if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1)
    2.21      {
    2.22 -        xcio_error(ioctxt, "Could not get full domain info");
    2.23 +        xcio_error(ioctxt, "Could not get domain info");
    2.24          goto out;
    2.25      }
    2.26      if ( xc_domain_get_vcpu_context( xc_handle, domid, /* FIXME */ 0,