]> xenbits.xensource.com Git - libvirt.git/commitdiff
bhyve: caps: Log error message when CPU init fails
authorCole Robinson <crobinso@redhat.com>
Fri, 18 Mar 2016 22:33:05 +0000 (18:33 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 18 Mar 2016 22:33:53 +0000 (18:33 -0400)
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

index d2970a2315feecefd195bc1fe6967fbd250f54b1..93faaed82b63708b0aa14d6fc3e5362e89649f1b 100644 (file)
@@ -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;