From d8105058282bd313aa42118c7d7ef598727e8728 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Sun, 15 Sep 2024 13:00:22 +0200 Subject: [PATCH] Improve readability of printgpt --- mtkclient/Library/gpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtkclient/Library/gpt.py b/mtkclient/Library/gpt.py index 4deed86..8ae0526 100755 --- a/mtkclient/Library/gpt.py +++ b/mtkclient/Library/gpt.py @@ -267,7 +267,7 @@ class GPT(metaclass=LogBase): def tostring(self): mstr = "\nGPT Table:\n-------------\n" for _partition in self.partentries: - mstr += ("{:20} Offset 0x{:016x}, Length 0x{:016x}, Flags 0x{:08x}, UUID {}, Type {}\n".format( + mstr += ("{:20} Offset 0x{:016x}, Length 0x{:016x}\n Flags 0x{:08x}, UUID {}, Type {}\n".format( _partition.name + ":", _partition.sector * self.sectorsize, _partition.sectors * self.sectorsize, _partition.flags, _partition.unique, _partition.type)) mstr += ("\nTotal disk size:0x{:016x}, sectors:0x{:016x}\n".format(self.totalsectors * self.sectorsize,