[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] fix calls to xc_domain_getinfo()



ChangeSet 1.1389.1.60, 2005/05/13 19:20:40+01:00, smh22@xxxxxxxxxxxxxxxxxxxx

        fix calls to xc_domain_getinfo()
        
        Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>



 xc_core.c       |    2 +-
 xc_linux_save.c |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)


diff -Nru a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c
--- a/tools/libxc/xc_core.c     2005-05-13 16:07:41 -04:00
+++ b/tools/libxc/xc_core.c     2005-05-13 16:07:41 -04:00
@@ -48,7 +48,7 @@
                goto error_out;
        }
        
-       if (xc_domain_getinfo(xc_handle, domid, 1, &info)) {
+       if (xc_domain_getinfo(xc_handle, domid, 1, &info) != 1) {
                PERROR("Could not get info for domain");
                goto error_out;
        }
diff -Nru a/tools/libxc/xc_linux_save.c b/tools/libxc/xc_linux_save.c
--- a/tools/libxc/xc_linux_save.c       2005-05-13 16:07:41 -04:00
+++ b/tools/libxc/xc_linux_save.c       2005-05-13 16:07:41 -04:00
@@ -333,9 +333,9 @@
 
 retry:
 
-    if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) )
+    if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) != 1)
     {
-       xcio_error(ioctxt, "Could not get full domain info");
+       xcio_error(ioctxt, "Could not get domain info");
        return -1;
     }
 
@@ -447,9 +447,9 @@
         return 1;
     }
     
-    if ( xc_domain_getinfo(xc_handle, domid, 1, &info) )
+    if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1)
     {
-        xcio_error(ioctxt, "Could not get full domain info");
+        xcio_error(ioctxt, "Could not get domain info");
         goto out;
     }
     if ( xc_domain_get_vcpu_context( xc_handle, domid, /* FIXME */ 0, 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.