Re: [PATCH] bhyve: caps: Log error message when CPU init fails

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

 



  Cole Robinson wrote:

> virBhyveCapsInitCPU will raise a libvirt error; even though we treat
> it as non-fatal we should log the actual message.
> ---
>  src/bhyve/bhyve_capabilities.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bhyve/bhyve_capabilities.c b/src/bhyve/bhyve_capabilities.c
> index d2970a2..93faaed 100644
> --- a/src/bhyve/bhyve_capabilities.c
> +++ b/src/bhyve/bhyve_capabilities.c
> @@ -97,7 +97,7 @@ virBhyveCapsBuild(void)
>          goto error;
>  
>      if (virBhyveCapsInitCPU(caps, virArchFromHost()) < 0)
> -            VIR_WARN("Failed to get host CPU");
> +        VIR_WARN("Failed to get host CPU: %s", virGetLastErrorMessage());
>  
>      return caps;

ACK

Roman Bogorodskiy

Attachment: signature.asc
Description: PGP signature

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