]> xenbits.xensource.com Git - xen.git/commitdiff
tools/libxc/xtl: fix logic error in stdiostream_progress
authorOlaf Hering <olaf@aepfle.de>
Wed, 13 Feb 2013 15:57:54 +0000 (15:57 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 22 Feb 2013 17:02:15 +0000 (17:02 +0000)
Setting XTL_STDIOSTREAM_HIDE_PROGRESS should disable progress reporting.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
tools/libxc/xtl_logger_stdio.c

index 3edf0a2fd720ee534c31b4db991d22870386a5b4..24922d2d2e8aad30e44c20f8594c6a03459805ca 100644 (file)
@@ -89,7 +89,7 @@ static void stdiostream_progress(struct xentoollog_logger *logger_in,
     int newpel, extra_erase;
     xentoollog_level this_level;
 
-    if (!(lg->flags & XTL_STDIOSTREAM_HIDE_PROGRESS))
+    if (lg->flags & XTL_STDIOSTREAM_HIDE_PROGRESS)
         return;
 
     if (percent < lg->progress_last_percent) {