]> xenbits.xensource.com Git - libvirt.git/commitdiff
Add missing "%s" with constant string error message in nwfilter_dhcpsnoop.c
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 18 Jul 2012 20:15:18 +0000 (21:15 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 18 Jul 2012 20:15:43 +0000 (21:15 +0100)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/nwfilter/nwfilter_dhcpsnoop.c

index db367e1fd602c375f7c8c0cfdcc6e2f2fa68d4d2..7e258cf0d11280455ebbb68f6c2d72c272c7d34c 100644 (file)
@@ -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;
     }