mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-08 00:30:27 +00:00
Added origin to default string representation
This commit is contained in:
parent
f64ffb777b
commit
1dc003d65f
@ -301,7 +301,11 @@ class DefaultSegment(object):
|
||||
|
||||
|
||||
def __str__(self):
|
||||
s = "%s ($%x bytes)" % (self.name, len(self))
|
||||
if self.start_addr > 0:
|
||||
origin = " @ %04x" % (self.start_addr)
|
||||
else:
|
||||
origin = ""
|
||||
s = "%s ($%x bytes%s)" % (self.name, len(self), origin)
|
||||
if self.error:
|
||||
s += " " + self.error
|
||||
return s
|
||||
|
Loading…
x
Reference in New Issue
Block a user