mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 17:10:42 +09:00
binman: Use print() to print output
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 <sjg@chromium.org>
This commit is contained in:
parent
935461262e
commit
7b773167c0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user