Revert "scripts: tizen: sd_fusing.py: Display an information during flashing" 34/308634/2
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 28 Mar 2024 07:20:58 +0000 (08:20 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 28 Mar 2024 10:01:05 +0000 (11:01 +0100)
This partially reverts commit 8f78bf12c0eba95ebb203868856899fdcec2935c.

Only the logging module should be used for printing messages to enable
consistent control over script's output.

Change-Id: I3c9b91ff8a8accdef910700348e24be0ca1b7890
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/tizen/sd_fusing.py

index bc67deb..6937fb7 100755 (executable)
@@ -763,7 +763,7 @@ def do_fuse_file(f, name, target):
                                bufsize=(4 << 20),
                                stdin=subprocess.PIPE,
                                stdout=None, stderr=None)
-    print('\033[32m'+f"Writing {name} to {pdevice}"+'\033[0m')
+    logging.info(f"Writing {name} to {pdevice}")
     buf = f.read(4 << 20)
     while len(buf) > 0:
         proc_dd.stdin.write(buf)