From: Simon Glass Date: Fri, 10 Jul 2020 00:39:26 +0000 (-0600) Subject: binman: Output errors to stderr X-Git-Tag: v2020.10~98^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c8e0bfe6e379408bcc80224f74ba47e5f82505e;p=platform%2Fkernel%2Fu-boot.git binman: Output errors to stderr 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 Reviewed-by: Bin Meng --- diff --git a/tools/binman/main.py b/tools/binman/main.py index efa7fa8..0ab2bb6 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()