mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
nwfilter: Move error messages onto a single line
Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
4a09a89c4b
commit
9b10782bb7
@ -1441,9 +1441,7 @@ virNWFilterDHCPSnoopReq(virNWFilterTechDriver *techdriver,
|
||||
/* check that all tools are available for applying the filters (late) */
|
||||
if (!techdriver->canApplyBasicRules()) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("IP parameter must be provided since "
|
||||
"snooping the IP address does not work "
|
||||
"possibly due to missing tools"));
|
||||
_("IP parameter must be provided since snooping the IP address does not work possibly due to missing tools"));
|
||||
goto exit_snoopreqput;
|
||||
}
|
||||
|
||||
@ -1454,8 +1452,7 @@ virNWFilterDHCPSnoopReq(virNWFilterTechDriver *techdriver,
|
||||
&req->binding->mac,
|
||||
dhcpsrvrs, false) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("applyDHCPOnlyRules "
|
||||
"failed - spoofing not protected!"));
|
||||
_("applyDHCPOnlyRules failed - spoofing not protected!"));
|
||||
goto exit_snoopreqput;
|
||||
}
|
||||
|
||||
@ -1990,9 +1987,8 @@ virNWFilterDHCPSnoopReq(virNWFilterTechDriver *techdriver G_GNUC_UNUSED,
|
||||
virNWFilterDriverState *driver G_GNUC_UNUSED)
|
||||
{
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("libvirt was not compiled with libpcap and \""
|
||||
NWFILTER_VARNAME_CTRL_IP_LEARNING
|
||||
"='dhcp'\" requires it."));
|
||||
_("libvirt was not compiled with libpcap and \"%1$s\" requires it"),
|
||||
NWFILTER_VARNAME_CTRL_IP_LEARNING "='dhcp'");
|
||||
return -1;
|
||||
}
|
||||
#endif /* WITH_LIBPCAP */
|
||||
|
@ -669,9 +669,7 @@ virNWFilterLearnIPAddress(virNWFilterTechDriver *techdriver,
|
||||
|
||||
if (!techdriver->canApplyBasicRules()) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("IP parameter must be provided since "
|
||||
"snooping the IP address does not work "
|
||||
"possibly due to missing tools"));
|
||||
_("IP parameter must be provided since snooping the IP address does not work possibly due to missing tools"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -717,9 +715,7 @@ virNWFilterLearnIPAddress(virNWFilterTechDriver *techdriver G_GNUC_UNUSED,
|
||||
int howDetect G_GNUC_UNUSED)
|
||||
{
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("IP parameter must be given since libvirt "
|
||||
"was not compiled with IP address learning "
|
||||
"support"));
|
||||
_("IP parameter must be given since libvirt was not compiled with IP address learning support"));
|
||||
return -1;
|
||||
}
|
||||
#endif /* WITH_LIBPCAP */
|
||||
|
Loading…
Reference in New Issue
Block a user