From: Cole Robinson Date: Fri, 18 Mar 2016 22:33:05 +0000 (-0400) Subject: bhyve: caps: Log error message when CPU init fails X-Git-Tag: v1.3.3-rc1~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c770472c481e4737bcf4058183d6d2eab17058b9;p=thirdparty%2Flibvirt.git bhyve: caps: Log error message when CPU init fails virBhyveCapsInitCPU will raise a libvirt error; even though we treat it as non-fatal we should log the actual message. --- diff --git a/src/bhyve/bhyve_capabilities.c b/src/bhyve/bhyve_capabilities.c index d2970a2315..93faaed82b 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;