mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Add missing "%s" with constant string error message in nwfilter_dhcpsnoop.c
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
9f5ef4d9b3
commit
6d964bcf66
@ -1097,7 +1097,7 @@ virNWFilterSnoopDHCPOpen(const char *ifname, virMacAddr *mac,
|
|||||||
handle = pcap_create(ifname, pcap_errbuf);
|
handle = pcap_create(ifname, pcap_errbuf);
|
||||||
|
|
||||||
if (handle == NULL) {
|
if (handle == NULL) {
|
||||||
virNWFilterReportError(VIR_ERR_INTERNAL_ERROR,
|
virNWFilterReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("pcap_create failed"));
|
_("pcap_create failed"));
|
||||||
goto cleanup_nohandle;
|
goto cleanup_nohandle;
|
||||||
}
|
}
|
||||||
@ -1105,7 +1105,7 @@ virNWFilterSnoopDHCPOpen(const char *ifname, virMacAddr *mac,
|
|||||||
if (pcap_set_snaplen(handle, PCAP_PBUFSIZE) < 0 ||
|
if (pcap_set_snaplen(handle, PCAP_PBUFSIZE) < 0 ||
|
||||||
pcap_set_buffer_size(handle, PCAP_BUFFERSIZE) < 0 ||
|
pcap_set_buffer_size(handle, PCAP_BUFFERSIZE) < 0 ||
|
||||||
pcap_activate(handle) < 0) {
|
pcap_activate(handle) < 0) {
|
||||||
virNWFilterReportError(VIR_ERR_INTERNAL_ERROR,
|
virNWFilterReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("setup of pcap handle failed"));
|
_("setup of pcap handle failed"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user