summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-18 16:48:30 -0600
committersjg <sjg@chromium.org>2016-10-09 09:30:32 -0600
commit8b4919ed29f51075e85a7358db75b66a226d5b1e (patch)
tree89076adc92f46a717492a4f47313c5ce5e29b707 /tools
parentf5fd45ff64e28a73499548358e3d1ceda0de7daf (diff)
downloadu-boot-imx-8b4919ed29f51075e85a7358db75b66a226d5b1e.zip
u-boot-imx-8b4919ed29f51075e85a7358db75b66a226d5b1e.tar.gz
u-boot-imx-8b4919ed29f51075e85a7358db75b66a226d5b1e.tar.bz2
patman: Flush output when there is no newline
Output which does not include a newline will not be displayed unless flushed. Add a flush to ensure that it becomes visible. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/terminal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/terminal.py b/tools/patman/terminal.py
index e78a7c1..af3593e 100644
--- a/tools/patman/terminal.py
+++ b/tools/patman/terminal.py
@@ -55,6 +55,8 @@ def Print(text='', newline=True, colour=None):
print text,
if newline:
print
+ else:
+ sys.stdout.flush()
def SetPrintTestMode():
"""Go into test mode, where all printing is recorded"""