diff options
Diffstat (limited to '')
| -rw-r--r-- | miasm/core/asmbloc.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/miasm/core/asmbloc.py b/miasm/core/asmbloc.py index 324bc9d2..e3110697 100644 --- a/miasm/core/asmbloc.py +++ b/miasm/core/asmbloc.py @@ -59,8 +59,10 @@ class asm_label: self.offset = int(offset) def __str__(self): - out = "%s: %s"%(self.name, str(self.offset)) - return out + if isinstance(self.offset, (int, long)): + return "%s: 0x%08x" % (self.name, self.offset) + else: + return "%s: %s" % (self.name, str(self.offset)) def __repr__(self): rep = '<asmlabel ' if self.name: |