From: Laine Stump Date: Tue, 9 Mar 2010 13:32:06 +0000 (+0100) Subject: Fix format string warnings X-Git-Tag: v0.8.0~330 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=618dc80c2f07e554dda3d94c1addc57966d812e8;p=thirdparty%2Flibvirt.git Fix format string warnings A few more non-literal format strings in error log messages have crept in. Fix them in the standard way - turn the format string into "%s" with the original string as the arg. --- diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index c93baec37e..40ca221948 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -3033,7 +3033,7 @@ qemuBuildVirtioSerialPortDevStr(virDomainChrDefPtr dev) VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL) { qemuReportError(VIR_ERR_INTERNAL_ERROR, - _("virtio serial device has invalid address type")); + "%s", _("virtio serial device has invalid address type")); goto error; } diff --git a/src/xen/xend_internal.c b/src/xen/xend_internal.c index cd7177b38e..8b4e49e132 100644 --- a/src/xen/xend_internal.c +++ b/src/xen/xend_internal.c @@ -5848,7 +5848,7 @@ xenDaemonFormatSxpr(virConnectPtr conn, if (def->clock.offset == VIR_DOMAIN_CLOCK_OFFSET_LOCALTIME) { if (def->clock.data.timezone) { virXendError(conn, VIR_ERR_CONFIG_UNSUPPORTED, - _("configurable timezones are not supported")); + "%s", _("configurable timezones are not supported")); goto error; } diff --git a/src/xen/xm_internal.c b/src/xen/xm_internal.c index 0973b43346..2d0f1d58a2 100644 --- a/src/xen/xm_internal.c +++ b/src/xen/xm_internal.c @@ -2330,7 +2330,7 @@ virConfPtr xenXMDomainConfigFormat(virConnectPtr conn, if (def->clock.offset == VIR_DOMAIN_CLOCK_OFFSET_LOCALTIME) { if (def->clock.data.timezone) { xenXMError(conn, VIR_ERR_CONFIG_UNSUPPORTED, - _("configurable timezones are not supported")); + "%s", _("configurable timezones are not supported")); goto cleanup; }