mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:03:49 +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 */
|
/* def:maxvcpus -> vmx:numvcpus */
|
||||||
if (def->vcpus != def->maxvcpus) {
|
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 "
|
_("No support for domain XML entry 'vcpu' attribute "
|
||||||
"'current'"));
|
"'current'"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
@ -334,7 +334,7 @@ static char *iptablesFormatNetwork(virSocketAddr *netaddr,
|
|||||||
|
|
||||||
if (!VIR_SOCKET_IS_FAMILY(netaddr, AF_INET) ||
|
if (!VIR_SOCKET_IS_FAMILY(netaddr, AF_INET) ||
|
||||||
!VIR_SOCKET_IS_FAMILY(netmask, 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"));
|
_("Only IPv4 addresses can be used with iptables"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ virSocketParseAddr(const char *val, virSocketAddrPtr addr, int family) {
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (val == NULL) {
|
if (val == NULL) {
|
||||||
virSocketError(VIR_ERR_INVALID_ARG, _("Missing address"));
|
virSocketError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ virSocketFormatAddrFull(virSocketAddrPtr addr,
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (addr == NULL) {
|
if (addr == NULL) {
|
||||||
virSocketError(VIR_ERR_INVALID_ARG, _("Missing address"));
|
virSocketError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user