mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
Fix several warnings about a non-literal format string
They only popped up during --disable-nls build. Without this configure option, gcc wasn't able to detect them.
This commit is contained in:
parent
af3ba2cd50
commit
53618145ee
@ -2611,7 +2611,7 @@ esxVMX_FormatConfig(esxVMX_Context *ctx, virCapsPtr caps, virDomainDefPtr def,
|
||||
|
||||
/* def:maxvcpus -> vmx:numvcpus */
|
||||
if (def->vcpus != def->maxvcpus) {
|
||||
ESX_ERROR(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
ESX_ERROR(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("No support for domain XML entry 'vcpu' attribute "
|
||||
"'current'"));
|
||||
goto cleanup;
|
||||
|
@ -334,7 +334,7 @@ static char *iptablesFormatNetwork(virSocketAddr *netaddr,
|
||||
|
||||
if (!VIR_SOCKET_IS_FAMILY(netaddr, AF_INET) ||
|
||||
!VIR_SOCKET_IS_FAMILY(netmask, AF_INET)) {
|
||||
iptablesError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
iptablesError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("Only IPv4 addresses can be used with iptables"));
|
||||
return NULL;
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ virSocketParseAddr(const char *val, virSocketAddrPtr addr, int family) {
|
||||
int err;
|
||||
|
||||
if (val == NULL) {
|
||||
virSocketError(VIR_ERR_INVALID_ARG, _("Missing address"));
|
||||
virSocketError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -173,7 +173,7 @@ virSocketFormatAddrFull(virSocketAddrPtr addr,
|
||||
int err;
|
||||
|
||||
if (addr == NULL) {
|
||||
virSocketError(VIR_ERR_INVALID_ARG, _("Missing address"));
|
||||
virSocketError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user