summaryrefslogtreecommitdiff
path: root/python/basicblock.py
diff options
context:
space:
mode:
authorScott Lagler <laglerscott@gmail.com>2023-11-21 20:01:33 -0500
committerxusheng <xusheng@vector35.com>2023-11-23 15:38:26 +0800
commitf7fc9a16455913bc97b969a653e06a00dfa9eb23 (patch)
tree12deea877a10818e13c928bfa55fc7df59fa7028 /python/basicblock.py
parent049692f154af2c50e88ddb77edd64cb70f15ac12 (diff)
Fix address printing for BasicBlocks in repr
Diffstat (limited to 'python/basicblock.py')
-rw-r--r--python/basicblock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/basicblock.py b/python/basicblock.py
index 98cc79fa..64f2101b 100644
--- a/python/basicblock.py
+++ b/python/basicblock.py
@@ -68,9 +68,9 @@ class BasicBlock:
def __repr__(self):
arch = self.arch
if arch:
- return f"<{self.__class__.__name__}: {arch.name}@{self.start}-{self.end}>"
+ return f"<{self.__class__.__name__}: {arch.name}@{self.start:#x}-{self.end:#x}>"
else:
- return f"<{self.__class__.__name__}: {self.start}-{self.end}>"
+ return f"<{self.__class__.__name__}: {self.start:#x}-{self.end:#x}>"
def __len__(self):
return int(core.BNGetBasicBlockLength(self.handle))