soc/SoCRegion: Ensure fixed indentation in __str__.

This commit is contained in:
Florent Kermarrec 2024-02-13 14:52:29 +01:00
parent 46a2e6fe78
commit 36767c66b4
1 changed files with 5 additions and 5 deletions

View File

@ -99,12 +99,12 @@ class SoCRegion:
def __str__(self): def __str__(self):
r = "" r = ""
if self.origin is not None: if self.origin is not None:
r += "Origin: {}, ".format(colorer("0x{:08x}".format(self.origin))) r += "Origin: {:>16}, ".format(colorer("0x{:08x}".format(self.origin)))
if self.size is not None: if self.size is not None:
r += "Size: {}, ".format(colorer("0x{:08x}".format(self.size))) r += "Size: {:>16}, ".format(colorer("0x{:08x}".format(self.size)))
r += "Mode: {}, ".format(colorer(self.mode.upper())) r += "Mode: {:>11}, ".format(colorer(self.mode.upper()))
r += "Cached: {} ".format(colorer(self.cached)) r += "Cached: {:>13}, ".format(colorer(self.cached))
r += "Linker: {}".format(colorer(self.linker)) r += "Linker: {:>13}".format(colorer(self.linker))
return r return r
class SoCIORegion(SoCRegion): pass class SoCIORegion(SoCRegion): pass