From: Olaf Hering Subject: [PATCH] tools/xc: fix logic error in stdiostream_progress Date: Fri, 01 Feb 2013 18:15:24 +0100 Message-ID: <6d1d516ecaade56f796e.1359738924@probook.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1359738883 -3600 # Node ID 6d1d516ecaade56f796e3216e9931fdcc12282cd # Parent 6727070b4129cf852199b66b6a81042ee6966a98 tools/xc: fix logic error in stdiostream_progress Setting XTL_STDIOSTREAM_HIDE_PROGRESS should disable progress reporting, instead of not setting it. Signed-off-by: Olaf Hering diff -r 6727070b4129 -r 6d1d516ecaad tools/libxc/xtl_logger_stdio.c --- a/tools/libxc/xtl_logger_stdio.c +++ b/tools/libxc/xtl_logger_stdio.c @@ -89,7 +89,7 @@ static void stdiostream_progress(struct 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) {