|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] opw: libxl: use GCSPRINTF in place of libxl_sprintf() in libxl_qmp.c
On Sun, 2013-11-10 at 19:41 -0800, Kelley Nielsen wrote:
>
> #define QMP_PARAMETERS_SPRINTF(args, name, format, ...) \
> qmp_parameters_add_string(gc, args, name, \
> - libxl__sprintf(gc, format, __VA_ARGS__))
> + GCSPRINTF(format, __VA_ARGS__))
Might now be short enough to fit on the line after "name, "?
> @@ -766,7 +764,7 @@ static int pci_add_callback(libxl__qmp_handler *qmp,
> const libxl__json_object *bus = NULL;
> GC_INIT(qmp->ctx);
> int i, j, rc = -1;
> - char *asked_id = libxl__sprintf(gc, PCI_PT_QDEV_ID,
> + char *asked_id = GCSPRINTF(PCI_PT_QDEV_ID,
> pcidev->bus, pcidev->dev, pcidev->func);
>
> for (i = 0; (bus = libxl__json_array_get(response, i)); i++) {
> @@ -835,7 +833,7 @@ int libxl__qmp_pci_add(libxl__gc *gc, int domid,
> libxl_device_pci *pcidev)
> if (!qmp)
> return -1;
>
> - hostaddr = libxl__sprintf(gc, "%04x:%02x:%02x.%01x", pcidev->domain,
> + hostaddr = GCSPRINTF("%04x:%02x:%02x.%01x", pcidev->domain,
> pcidev->bus, pcidev->dev, pcidev->func);
Please also reindent the following line in these two cases, or unwrap if
the result is <80 columns.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |