Re: [PATCH v2 4/8] libxl: 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/libxl/libxl_driver.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
> index b8b4c24..e70e124 100644
> --- a/src/libxl/libxl_driver.c
> +++ b/src/libxl/libxl_driver.c
> @@ -319,9 +319,9 @@ libxlAutostartDomain(virDomainObjPtr vm,
>  
>      if (vm->autostart && !virDomainObjIsActive(vm) &&
>          libxlDomainStartNew(driver, vm, false) < 0) {
> -        VIR_ERROR(_("Failed to autostart VM '%s': %s"),
> -                  vm->def->name,
> -                  virGetLastErrorMessage());
> +        virReportError(VIR_ERR_INTERNAL_ERROR, _("Failed to autostart VM '%s': %s"),
> +                       vm->def->name,
> +                       virGetLastErrorMessage());
>          goto endjob;
>      }
>  
> 

I split this long line similarly and pushed

Thanks,
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]