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

Roman Bogorodskiy bogorodskiy at gmail.com
Sat Mar 19 18:48:24 UTC 2016


  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160319/eccf1b38/attachment-0001.sig>


More information about the libvir-list mailing list