From: Daniel P. Berrange Date: Wed, 18 Jul 2012 20:15:18 +0000 (+0100) Subject: Add missing "%s" with constant string error message in nwfilter_dhcpsnoop.c X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6d964bcf661be46eddbfae7aa36517e5f4720912;p=libvirt.git Add missing "%s" with constant string error message in nwfilter_dhcpsnoop.c Signed-off-by: Daniel P. Berrange --- diff --git a/src/nwfilter/nwfilter_dhcpsnoop.c b/src/nwfilter/nwfilter_dhcpsnoop.c index db367e1fd6..7e258cf0d1 100644 --- a/src/nwfilter/nwfilter_dhcpsnoop.c +++ b/src/nwfilter/nwfilter_dhcpsnoop.c @@ -1097,7 +1097,7 @@ virNWFilterSnoopDHCPOpen(const char *ifname, virMacAddr *mac, handle = pcap_create(ifname, pcap_errbuf); if (handle == NULL) { - virNWFilterReportError(VIR_ERR_INTERNAL_ERROR, + virNWFilterReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("pcap_create failed")); goto cleanup_nohandle; } @@ -1105,7 +1105,7 @@ virNWFilterSnoopDHCPOpen(const char *ifname, virMacAddr *mac, if (pcap_set_snaplen(handle, PCAP_PBUFSIZE) < 0 || pcap_set_buffer_size(handle, PCAP_BUFFERSIZE) < 0 || pcap_activate(handle) < 0) { - virNWFilterReportError(VIR_ERR_INTERNAL_ERROR, + virNWFilterReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("setup of pcap handle failed")); goto cleanup; }