diff --git a/buildconfigs/Rules.mk b/buildconfigs/Rules.mk index 37b694855d..fe02b1e11b 100644 --- a/buildconfigs/Rules.mk +++ b/buildconfigs/Rules.mk @@ -74,8 +74,8 @@ clean:: ref-%/.valid-ref: pristine-%/.valid-pristine rm -rf $(@D) cp -al $(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 @@ int xc_linux_save(int xc_handle, XcIOContext *ioctxt) 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,