mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
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:
parent
d3b6fe5f9c
commit
618dc80c2f
@ -3033,7 +3033,7 @@ qemuBuildVirtioSerialPortDevStr(virDomainChrDefPtr dev)
|
|||||||
VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL)
|
VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL)
|
||||||
{
|
{
|
||||||
qemuReportError(VIR_ERR_INTERNAL_ERROR,
|
qemuReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("virtio serial device has invalid address type"));
|
"%s", _("virtio serial device has invalid address type"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5848,7 +5848,7 @@ xenDaemonFormatSxpr(virConnectPtr conn,
|
|||||||
if (def->clock.offset == VIR_DOMAIN_CLOCK_OFFSET_LOCALTIME) {
|
if (def->clock.offset == VIR_DOMAIN_CLOCK_OFFSET_LOCALTIME) {
|
||||||
if (def->clock.data.timezone) {
|
if (def->clock.data.timezone) {
|
||||||
virXendError(conn, VIR_ERR_CONFIG_UNSUPPORTED,
|
virXendError(conn, VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("configurable timezones are not supported"));
|
"%s", _("configurable timezones are not supported"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2330,7 +2330,7 @@ virConfPtr xenXMDomainConfigFormat(virConnectPtr conn,
|
|||||||
if (def->clock.offset == VIR_DOMAIN_CLOCK_OFFSET_LOCALTIME) {
|
if (def->clock.offset == VIR_DOMAIN_CLOCK_OFFSET_LOCALTIME) {
|
||||||
if (def->clock.data.timezone) {
|
if (def->clock.data.timezone) {
|
||||||
xenXMError(conn, VIR_ERR_CONFIG_UNSUPPORTED,
|
xenXMError(conn, VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("configurable timezones are not supported"));
|
"%s", _("configurable timezones are not supported"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user