From: Dmitry Selyutin Date: Tue, 19 Apr 2022 12:57:37 +0000 (+0000) Subject: selectable_int: make FieldSelectableInt.__repr__ more flexible X-Git-Tag: sv_maxu_works-initial~496 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95de791cc559855e0540dcd901893b4fe8e9afe1;p=openpower-isa.git selectable_int: make FieldSelectableInt.__repr__ more flexible --- diff --git a/src/openpower/decoder/selectable_int.py b/src/openpower/decoder/selectable_int.py index 9e1495d5..81e5a9f4 100644 --- a/src/openpower/decoder/selectable_int.py +++ b/src/openpower/decoder/selectable_int.py @@ -120,7 +120,7 @@ class FieldSelectableInt: return fi def __repr__(self): - return "FieldSelectableInt(si=%s, br=%s)" % (self.si, self.br) + return f"{self.__class__.__name__}(si={self.si}, br={self.br})" def asint(self, msb0=False): res = 0