From: Martin Kletzander Date: Fri, 3 Nov 2017 16:28:10 +0000 (+0100) Subject: Only output initialized capabilities with VIR_TEST_DEBUG > 1 X-Git-Tag: v3.10.0-rc1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8bbc23fea2302c12cf8e162a6d08ecd304fdcb0;p=thirdparty%2Flibvirt.git Only output initialized capabilities with VIR_TEST_DEBUG > 1 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 Reviewed-by: Pavel Hrdina --- diff --git a/tests/testutils.c b/tests/testutils.c index 9266f15e85..17959aaf4f 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -1208,7 +1208,7 @@ virCapsPtr virTestGenericCapsInit(void) goto error; - if (virTestGetDebug()) { + if (virTestGetDebug() > 1) { char *caps_str; caps_str = virCapabilitiesFormatXML(caps);