From ff526982f88a3bf3fe77d14a85c53c260415f5e6 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 22 Jun 2023 22:07:59 +0300 Subject: [PATCH] power_enum: modify SVPtype stringification --- src/openpower/decoder/power_enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 707e3986..300a4653 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -202,7 +202,7 @@ class SVPType(Enum): def _missing_(cls, desc): return {"1P": SVPType.P1, "2P": SVPType.P2, "2PM": SVPType.P2M}.get(desc) - def __repr__(self): + def __str__(self): return { SVPType.NONE: "NONE", SVPType.P1: "1P", -- 2.30.2