From b8bbc23fea2302c12cf8e162a6d08ecd304fdcb0 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Fri, 3 Nov 2017 17:28:10 +0100 Subject: [PATCH] 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 --- tests/testutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab