WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] fix calls to xc_domain_getinfo()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] fix calls to xc_domain_getinfo()
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 13 May 2005 18:20:40 +0000
Delivery-date: Fri, 13 May 2005 20:07:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] fix calls to xc_domain_getinfo(), BitKeeper Bot <=