[PATCH v3 03/49] binman: Output errors to stderr

Simon Glass sjg at chromium.org
Fri Jul 10 02:39:26 CEST 2020


At present binman outputs errors to stdout which means that fails are
effectively silent when printed by buildman, for example. Fix this by
outputing errors to stderr.

Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
---

(no changes since v2)

Changes in v2:
- Add new binman patch to output errors to stderr

 tools/binman/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/binman/main.py b/tools/binman/main.py
index efa7fa8386..0ab2bb6206 100755
--- a/tools/binman/main.py
+++ b/tools/binman/main.py
@@ -123,7 +123,7 @@ def RunBinman(args):
         try:
             ret_code = control.Binman(args)
         except Exception as e:
-            print('binman: %s' % e)
+            print('binman: %s' % e, file=sys.stderr)
             if args.debug:
                 print()
                 traceback.print_exc()
-- 
2.27.0.389.gc38d7665816-goog



More information about the U-Boot mailing list