tools/xc: fix logic error in stdiostream_progress
authorOlaf Hering <olaf@aepfle.de>
Fri, 15 Feb 2013 13:32:11 +0000 (13:32 +0000)
committerOlaf Hering <olaf@aepfle.de>
Fri, 15 Feb 2013 13:32:11 +0000 (13:32 +0000)
Setting XTL_STDIOSTREAM_HIDE_PROGRESS should disable progress reporting.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
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) {