]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix format string warnings
authorLaine Stump <laine@laine.org>
Tue, 9 Mar 2010 13:32:06 +0000 (14:32 +0100)
committerDaniel Veillard <veillard@redhat.com>
Tue, 9 Mar 2010 13:32:06 +0000 (14:32 +0100)
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.

src/qemu/qemu_conf.c
src/xen/xend_internal.c
src/xen/xm_internal.c

index c93baec37ed6bd9a13ff83ed8cbb00469b633823..40ca2219484d8a3ec9ea3dca99e0005cc25a12ef 100644 (file)
@@ -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;
         }
 
index cd7177b38e3476ac448059ff5becdc993684f6d3..8b4e49e132a664209cf3236ae5cc37d8bd704e41 100644 (file)
@@ -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;
         }
 
index 0973b4334665951bd5d8f2b8bc962d0efbf0eef6..2d0f1d58a2a502812f100f9001e0ff432f9594c8 100644 (file)
@@ -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;
             }