소스 검색

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>
Simon Glass 8 년 전
부모
커밋
8b4919ed29
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tools/patman/terminal.py

+ 2 - 0
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"""