From: Vincent Hanquez Subject: [PATCH 3/6] misc cleanup Date: Mon, 11 Jan 2010 21:48:23 +0000 Message-ID: <1263246506-5488-4-git-send-email-vincent.hanquez@eu.citrix.com> References: <1263246506-5488-1-git-send-email-vincent.hanquez@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.6.6" Return-path: In-Reply-To: <1263246506-5488-1-git-send-email-vincent.hanquez@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Vincent Hanquez List-Id: xen-devel@lists.xenproject.org --------------1.6.6 Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: quoted-printable wait_for_device_model expect two pointer as the end not 2 integers. remove debugging message in libxl_list Signed-off-by: Vincent Hanquez --- tools/libxl/libxl.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) --------------1.6.6 Content-Type: text/x-patch; name="0003-misc-cleanup.patch" Content-Disposition: attachment; filename="0003-misc-cleanup.patch" Content-Transfer-Encoding: quoted-printable diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 15299ea..518064e 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -299,7 +299,6 @@ struct libxl_dominfo * libxl_domain_list(struct libxl= _ctx *ctx, int *nb_domain) for (i =3D 0; i < ret; i++) { memcpy(&(ptr[index].uuid), info[i].handle, sizeof(xen_domain_han= dle_t)); ptr[index].domid =3D info[i].domain; - printf("domain %d [ret %d]\n", ptr[index].domid, ret); =20 if (info[i].flags & XEN_DOMINF_dying) ptr[index].dying =3D 1; @@ -1900,7 +1899,7 @@ int libxl_device_pci_add(struct libxl_ctx *ctx, uin= t32_t domid, libxl_device_pci =20 hvm =3D is_hvm(ctx, domid); if (hvm) { - if (libxl_wait_for_device_model(ctx, domid, "running", 0,0) < 0)= { + if (libxl_wait_for_device_model(ctx, domid, "running", NULL, NUL= L) < 0) { return -1; } path =3D libxl_sprintf(ctx, "/local/domain/0/device-model/%d/sta= te", domid); @@ -1914,7 +1913,7 @@ int libxl_device_pci_add(struct libxl_ctx *ctx, uin= t32_t domid, libxl_device_pci pcidev->bus, pcidev->dev, pcidev->func); path =3D libxl_sprintf(ctx, "/local/domain/0/device-model/%d/com= mand", domid); xs_write(ctx->xsh, XBT_NULL, path, "pci-ins", strlen("pci-ins"))= ; - if (libxl_wait_for_device_model(ctx, domid, "pci-inserted", 0,0)= < 0) + if (libxl_wait_for_device_model(ctx, domid, "pci-inserted", NULL= , NULL) < 0) XL_LOG(ctx, XL_LOG_ERROR, "Device Model didn't respond in ti= me"); path =3D libxl_sprintf(ctx, "/local/domain/0/device-model/%d/par= ameter", domid); vdevfn =3D libxl_xs_read(ctx, XBT_NULL, path); @@ -1993,7 +1992,7 @@ int libxl_device_pci_remove(struct libxl_ctx *ctx, = uint32_t domid, libxl_device_ =20 hvm =3D is_hvm(ctx, domid); if (hvm) { - if (libxl_wait_for_device_model(ctx, domid, "running", 0,0) < 0)= { + if (libxl_wait_for_device_model(ctx, domid, "running", NULL, NUL= L) < 0) { return -1; } path =3D libxl_sprintf(ctx, "/local/domain/0/device-model/%d/sta= te", domid); @@ -2003,7 +2002,7 @@ int libxl_device_pci_remove(struct libxl_ctx *ctx, = uint32_t domid, libxl_device_ pcidev->bus, pcidev->dev, pcidev->func); path =3D libxl_sprintf(ctx, "/local/domain/0/device-model/%d/com= mand", domid); xs_write(ctx->xsh, XBT_NULL, path, "pci-rem", strlen("pci-rem"))= ; - if (libxl_wait_for_device_model(ctx, domid, "pci-removed", 0,0) = < 0) { + if (libxl_wait_for_device_model(ctx, domid, "pci-removed", NULL,= NULL) < 0) { XL_LOG(ctx, XL_LOG_ERROR, "Device Model didn't respond in ti= me"); return -1; } --------------1.6.6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------1.6.6--