Skip to content

Commit

Permalink
soc/SoCRegion: Ensure fixed indentation in __str__.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Feb 13, 2024
1 parent 46a2e6f commit 36767c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def decoder(self, bus):
def __str__(self):
r = ""
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:
r += "Size: {}, ".format(colorer("0x{:08x}".format(self.size)))
r += "Mode: {}, ".format(colorer(self.mode.upper()))
r += "Cached: {} ".format(colorer(self.cached))
r += "Linker: {}".format(colorer(self.linker))
r += "Size: {:>16}, ".format(colorer("0x{:08x}".format(self.size)))
r += "Mode: {:>11}, ".format(colorer(self.mode.upper()))
r += "Cached: {:>13}, ".format(colorer(self.cached))
r += "Linker: {:>13}".format(colorer(self.linker))
return r

class SoCIORegion(SoCRegion): pass
Expand Down

0 comments on commit 36767c6

Please sign in to comment.