From patchwork Fri Jan 8 03:50:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 59315 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp311096lbb; Thu, 7 Jan 2016 19:53:18 -0800 (PST) X-Received: by 10.28.0.79 with SMTP id 76mr21795935wma.27.1452225198792; Thu, 07 Jan 2016 19:53:18 -0800 (PST) Return-Path: Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com. [209.132.183.39]) by mx.google.com with ESMTPS id e78si24637683wmc.63.2016.01.07.19.53.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jan 2016 19:53:18 -0800 (PST) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.39 as permitted sender) client-ip=209.132.183.39; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.39 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u083p4eQ013042; Thu, 7 Jan 2016 22:51:04 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u083oJap005772 for ; Thu, 7 Jan 2016 22:50:19 -0500 Received: from colepc.redhat.com (ovpn-113-33.phx2.redhat.com [10.3.113.33]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u083oBtf030219; Thu, 7 Jan 2016 22:50:18 -0500 From: Cole Robinson To: libvirt-list@redhat.com Date: Thu, 7 Jan 2016 22:50:04 -0500 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 10/12] tests: qemuxml2xml: Convert some fprintf to VIR_TEST_DEBUG X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com --- tests/qemuxml2xmltest.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.5.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index e3bd9c2..c0270d4 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -59,7 +59,7 @@ testXML2XMLHelper(const char *inxml, goto fail; if (!virDomainDefCheckABIStability(def, def)) { - fprintf(stderr, "ABI stability check failed on %s", inxml); + VIR_TEST_DEBUG("ABI stability check failed on %s", inxml); goto fail; } @@ -151,7 +151,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque) virBufferAdd(&buf, testStatusXMLSuffix, -1); if (!(source = virBufferContentAndReset(&buf))) { - fprintf(stderr, "Failed to create the source XML"); + VIR_TEST_DEBUG("Failed to create the source XML"); goto cleanup; } @@ -163,7 +163,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque) virBufferAdd(&buf, testStatusXMLSuffix, -1); if (!(expect = virBufferContentAndReset(&buf))) { - fprintf(stderr, "Failed to create the expect XML"); + VIR_TEST_DEBUG("Failed to create the expect XML"); goto cleanup; } @@ -174,14 +174,14 @@ testCompareStatusXMLToXMLFiles(const void *opaque) VIR_DOMAIN_DEF_PARSE_STATUS | VIR_DOMAIN_DEF_PARSE_ACTUAL_NET | VIR_DOMAIN_DEF_PARSE_PCI_ORIG_STATES))) { - fprintf(stderr, "Failed to parse domain status XML:\n%s", source); + VIR_TEST_DEBUG("Failed to parse domain status XML:\n%s", source); goto cleanup; } /* format it back */ if (!(actual = virDomainObjFormat(driver.xmlopt, obj, VIR_DOMAIN_DEF_FORMAT_SECURE))) { - fprintf(stderr, "Failed to format domain status XML"); + VIR_TEST_DEBUG("Failed to format domain status XML"); goto cleanup; } @@ -303,7 +303,7 @@ mymain(void) # define DO_TEST_FULL(name, is_different, when) \ do { \ if (testInfoSet(&info, name, is_different, when) < 0) { \ - fprintf(stderr, "Failed to generate test data for '%s'", name); \ + VIR_TEST_DEBUG("Failed to generate test data for '%s'", name); \ return -1; \ } \ \