scripts: sd_fusing: change log.* to logging.* 43/312443/4
authorJacek Kryszyn <j.kryszyn@samsung.com>
Mon, 10 Jun 2024 07:27:35 +0000 (09:27 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 13 Jun 2024 04:22:43 +0000 (13:22 +0900)
There were several occursences of log.* instead of
logging.* which are fixed in this commit.

Change-Id: Ic30fa959f5cb4c3b3a820ae716183738c6bdddac
Signed-off-by: Jacek Kryszyn <j.kryszyn@samsung.com>
scripts/tizen/sd_fusing.py

index f2f2fb9e892429e2d7488fa0c78e962b932d4a00..39b83ba7e0d0273086fe8eaa8ec3376272c78f4c 100755 (executable)
@@ -740,7 +740,7 @@ def check_sfdisk():
     support_delete = False
 
     if major < 2 or major == 2 and minor < 26:
-        log.error(f"Your sfdisk {major}.{minor}.{patch} is too old.")
+        logging.error(f"Your sfdisk {major}.{minor}.{patch} is too old.")
         return False,False
     elif major == 2 and minor >= 28:
         support_delete = True
@@ -830,7 +830,7 @@ def mkpart(args, target):
                                   stdin=subprocess.DEVNULL,
                                   stdout=None, stderr=None)
             if proc.returncode != 0:
-                log.error(f"Failed to create FAT filesystem on {d}")
+                logging.error(f"Failed to create FAT filesystem on {d}")
                 sys.exit(1)
         elif part['fstype'] == 'ext4':
             argv = ['mkfs.ext4', '-q', '-L', part['name'], d]
@@ -839,7 +839,7 @@ def mkpart(args, target):
                                   stdin=subprocess.DEVNULL,
                                   stdout=None, stderr=None)
             if proc.returncode != 0:
-                log.error(f"Failed to create ext4 filesystem on {d}")
+                logging.error(f"Failed to create ext4 filesystem on {d}")
                 sys.exit(1)
         elif part['fstype'] == 'swap':
             argv = ['mkswap', '-L', part['name'], d]
@@ -848,7 +848,7 @@ def mkpart(args, target):
                                   stdin=subprocess.DEVNULL,
                                   stdout=None, stderr=None)
             if proc.returncode != 0:
-                log.error(f"Failed to format swap partition {d}")
+                logging.error(f"Failed to format swap partition {d}")
                 sys.exit(1)
         elif part['fstype'] == 'raw':
             pass