Re: [PATCH v2 6/8] nwfilter: Replace VIR_ERROR with standard vir*Error in state driver init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/23/2016 02:35 PM, Jovanka Gulicoska wrote:
> Replace VIR_ERROR with virReportError
> ---
>  src/nwfilter/nwfilter_driver.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/src/nwfilter/nwfilter_driver.c b/src/nwfilter/nwfilter_driver.c
> index 2828b28..186830c 100644
> --- a/src/nwfilter/nwfilter_driver.c
> +++ b/src/nwfilter/nwfilter_driver.c
> @@ -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
> 

Thanks, I pushed this

- Cole

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]