]> xenbits.xensource.com Git - libvirt.git/commitdiff
Only output initialized capabilities with VIR_TEST_DEBUG > 1
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 3 Nov 2017 16:28:10 +0000 (17:28 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 18 Nov 2017 09:45:10 +0000 (10:45 +0100)
Currenty virTestInit() outputs all capabilities that it created when running
with VIR_TEST_DEBUG=1.  Since this is quite a lot of output for every call of
this function (and it is not needed until debugging a really deep-down issue)
let's just output the info when VIR_TEST_DEBUG is strictly greater than 1.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/testutils.c

index 9266f15e85b655b513f90aec6dc2cc8ee566c5ac..17959aaf4ff4689a97ddb9c06271d915555f76de 100644 (file)
@@ -1208,7 +1208,7 @@ virCapsPtr virTestGenericCapsInit(void)
         goto error;
 
 
-    if (virTestGetDebug()) {
+    if (virTestGetDebug() > 1) {
         char *caps_str;
 
         caps_str = virCapabilitiesFormatXML(caps);