Skip to content

Commit

Permalink
Improve readability of printgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Sep 15, 2024
1 parent a53a9ef commit d810505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtkclient/Library/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def print(self):
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,
Expand Down

0 comments on commit d810505

Please sign in to comment.