nwfilter: Replace VIR_ERROR with standard vir*Error in state driver init

Replace VIR_ERROR with virReportError
This commit is contained in:
Jovanka Gulicoska 2016-05-23 20:35:59 +02:00 committed by Cole Robinson
parent 1223f7b23e
commit 1433c803c9

View 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