diff options
| author | Brian Potchik <brian@vector35.com> | 2024-01-21 08:31:11 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2024-01-21 08:31:11 -0500 |
| commit | 96053ffc711aa27fcaeeb6cbfa89df0c253361f8 (patch) | |
| tree | b48c49fe58a55c5d38f84e21e4680a05059738e3 /python | |
| parent | d92f60bc1cb5ee88a9cce69d004f15c81618fdea (diff) | |
Update ConstantData expression repr.
Diffstat (limited to 'python')
| -rw-r--r-- | python/variable.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/variable.py b/python/variable.py index 402b82f1..0a86b850 100644 --- a/python/variable.py +++ b/python/variable.py @@ -210,12 +210,12 @@ class ConstantData(RegisterValue): def __repr__(self): if self.type == RegisterValueType.ConstantDataZeroExtendValue: - return f"<const data {{zx.{self.size}({self.value:#x})}}>" + return f"<{self.__class__.__name__}: {{zx.{self.size}({self.value:#x})}}>" if self.type == RegisterValueType.ConstantDataSignExtendValue: - return f"<const data {{sx.{self.size}({self.value:#x})}}>" + return f"<{self.__class__.__name__}: {{sx.{self.size}({self.value:#x})}}>" if self.type == RegisterValueType.ConstantDataAggregateValue: - return f"<const data {{aggregate.{self.size}}} @ {self.value:#x}>" - return f"<const data {{invalid}} {self.type} {self.value:#x}>" + return f"<{self.__class__.__name__}: {{aggregate.{self.size}}} @ {self.value:#x}>" + return f"<{self.__class__.__name__}: {{invalid}} {self.type} {self.value:#x}>" @property def data(self) -> databuffer.DataBuffer: |
