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.
This commit is contained in:
Laine Stump 2010-03-09 14:32:06 +01:00 committed by Daniel Veillard
parent d3b6fe5f9c
commit 618dc80c2f
3 changed files with 3 additions and 3 deletions

View 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;
}

View 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;
}

View 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;
}