]> xenbits.xensource.com Git - libvirt.git/commitdiff
nwfilter: Replace VIR_ERROR with standard vir*Error in state driver init
authorJovanka Gulicoska <jovanka.gulicoska@gmail.com>
Mon, 23 May 2016 18:35:59 +0000 (20:35 +0200)
committerCole Robinson <crobinso@redhat.com>
Mon, 23 May 2016 19:42:46 +0000 (15:42 -0400)
Replace VIR_ERROR with virReportError

src/nwfilter/nwfilter_driver.c

index 2828b28dea72be23b7b3b5d90c63c0304654c6f3..186830c90eb9ada8060a6300c05aabc5c1a0fdb5 100644 (file)
@@ -215,8 +215,9 @@ nwfilterStateInitialize(bool privileged,
      */
     if (sysbus &&
         nwfilterDriverInstallDBusMatches(sysbus) < 0) {
-        VIR_ERROR(_("DBus matches could not be installed. Disabling nwfilter "
-                  "driver"));
+        virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+                       _("DBus matches could not be installed. "
+                       "Disabling nwfilter driver"));
         /*
          * unfortunately this is fatal since virNWFilterTechDriversInit
          * may have caused the ebiptables driver to use the firewall tool