[Priv Exceptions] added __str__ as __repr__ alias to CpuTrap to correctly format exceptions when printed

kernel-mode
Anton Lydike 4 years ago
parent 3e4920f5d9
commit c770cc05cf

@ -62,6 +62,9 @@ class CpuTrap(BaseException):
name, self.priv.name, self.type.name, self.mtval
)
def __str__(self):
return self.__repr__()
class IllegalInstructionTrap(CpuTrap):
def __init__(self, ins: 'ElfInstruction'):

Loading…
Cancel
Save