From patchwork Sat Jul 20 18:23:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1134428 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="AI24wFQC"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45rbxf6rRWz9s4Y for ; Sun, 21 Jul 2019 04:29:26 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 928F1C21DB6; Sat, 20 Jul 2019 18:28:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BD32CC21E49; Sat, 20 Jul 2019 18:25:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B7A10C21E30; Sat, 20 Jul 2019 18:25:07 +0000 (UTC) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by lists.denx.de (Postfix) with ESMTPS id 04E45C21D9A for ; Sat, 20 Jul 2019 18:25:03 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id j6so32955051ioa.5 for ; Sat, 20 Jul 2019 11:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=naglt5ldrCDdl0dm1GzCRbxHXDYt8TDNVY9iGRVkgq0=; b=AI24wFQCj0UcsmgAd1ROOaCAizjFvNv6tg2v5BCxvZh9v0oVDak7+JdCol7rJEzs87 6J9tbslq3SkOTPnc6vqkUkmljNzJVF4lHFkLXxr3RJ9JrX6sAHHmNXWtKq+rUWB/BZZd y0m3vLz1PC6nvxhV4MRs+7IABM3i79VGExsDU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=naglt5ldrCDdl0dm1GzCRbxHXDYt8TDNVY9iGRVkgq0=; b=adwcLFugbR1sma+d/HWHfl3FG/MLgDU24AtW8OJMFrILtgjgDcdUYbvokcbMAkSTFx rDFa3pi+0q7cEO7WY9OAEDRKlPjJbAVsh5HnhIBOAFoe8y27aahEeQvFgkzegVV6hRgO 2vbHNsx2bU0jkGiIJmPWbUaT3Iwi9Oho+2ws3DyT2cKHXFctygiiUjwPTnd7jMJ3fwod +MvTJqoWYNvQ1k3+lhbtOgaOKiMr9jk+iIlGza0KWf9gBIZWb1e1BdDCpnVtiGM5DOe/ yr5tYeTMwCZAt7Ct1sBU349EL7Gh0/S1NCanv59xHB25BuDJ0yZX4zDJKk2e/OSJIwr1 J97w== X-Gm-Message-State: APjAAAVU1Iffa4bRRY0xgiax2AozYahObSb+9CC2rL6JNB8h/7lz+Kae 2+9kKXiskzbUiwV7NOGkPWn1yMz2C4o= X-Google-Smtp-Source: APXvYqzlVuymnn0ip93w/f50wAiCST4YNINs4JMgAB+BJob0XftaI/KR3nNLdYPP0IySQP65AQAFbA== X-Received: by 2002:a05:6638:191:: with SMTP id a17mr54656233jaq.101.1563647101832; Sat, 20 Jul 2019 11:25:01 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id z17sm49778933iol.73.2019.07.20.11.25.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 20 Jul 2019 11:25:01 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 20 Jul 2019 12:23:26 -0600 Message-Id: <20190720182416.183626-5-sjg@chromium.org> X-Mailer: git-send-email 2.22.0.657.g960e92d24f-goog In-Reply-To: <20190720182416.183626-1-sjg@chromium.org> References: <20190720182416.183626-1-sjg@chromium.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 04/53] binman: Use print() to print output X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" At present tout writes directly to stdout. This is not necessary and it prevents tests from redirecting output. Change it to use print() for the non-progress output. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/patman/tout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/patman/tout.py b/tools/patman/tout.py index 15acce28cb9..ae04c30f1db 100644 --- a/tools/patman/tout.py +++ b/tools/patman/tout.py @@ -4,6 +4,8 @@ # Terminal output logging. # +from __future__ import print_function + import sys import terminal @@ -87,7 +89,7 @@ def _Output(level, msg, color=None): ClearProgress() if color: msg = _color.Color(color, msg) - _stdout.write(msg + '\n') + print(msg) def DoOutput(level, msg): """Output a message to the terminal.