[libvirt] [PATCH v2 4/8] libxl: Replace VIR_ERROR with standard vir*Error in state driver init
Cole Robinson
crobinso at redhat.com
Mon May 23 19:44:36 UTC 2016
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
More information about the libvir-list
mailing list