Blame SOURCES/0117-p2v-Don-t-display-libvirt-XML-and-wrapper-script-on-.patch

e76f14
From c29e8831ed1414ff57811921afe323f223743f8b Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Mon, 20 Jun 2016 10:02:11 +0100
e76f14
Subject: [PATCH] p2v: Don't display libvirt XML and wrapper script on stderr.
e76f14
e76f14
Confusing for end users, and not necessary for debugging since those
e76f14
files are saved on the conversion server.
e76f14
e76f14
(cherry picked from commit 55a0ab845d570c781d321b09213aa43a709e91cd)
e76f14
---
e76f14
 p2v/conversion.c | 4 ++--
e76f14
 1 file changed, 2 insertions(+), 2 deletions(-)
e76f14
e76f14
diff --git a/p2v/conversion.c b/p2v/conversion.c
e76f14
index fe18b4a..b54f971 100644
e76f14
--- a/p2v/conversion.c
e76f14
+++ b/p2v/conversion.c
e76f14
@@ -277,7 +277,7 @@ start_conversion (struct config *config,
e76f14
   if (libvirt_xml == NULL)
e76f14
     goto out;
e76f14
 
e76f14
-#if DEBUG_STDERR
e76f14
+#if DEBUG_STDERR && 0
e76f14
   fprintf (stderr, "%s: libvirt XML:\n%s",
e76f14
            guestfs_int_program_name, libvirt_xml);
e76f14
 #endif
e76f14
@@ -287,7 +287,7 @@ start_conversion (struct config *config,
e76f14
   if (wrapper_script == NULL)
e76f14
     goto out;
e76f14
 
e76f14
-#if DEBUG_STDERR
e76f14
+#if DEBUG_STDERR && 0
e76f14
   fprintf (stderr, "%s: wrapper script:\n%s",
e76f14
            guestfs_int_program_name, wrapper_script);
e76f14
 #endif
e76f14
-- 
aa0300
2.7.4
e76f14