From c926aac9eeca02587d3c44d666adf5b6e1315090 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 5 Oct 2020 17:16:29 -0700 Subject: [PATCH] print regs in hex --- src/soc/fu/div/test/helper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/soc/fu/div/test/helper.py b/src/soc/fu/div/test/helper.py index 3b57b529..f368cf74 100644 --- a/src/soc/fu/div/test/helper.py +++ b/src/soc/fu/div/test/helper.py @@ -178,8 +178,7 @@ class DivTestHelper(unittest.TestCase): except AttributeError: pass msg = "%s: %s" % (div_pipe_kind.name, code) - msg += " %s" % (repr(prog.assembly)) - msg += " %s" % (repr(test.regs)) + msg += f" {prog.assembly!r} {list(map(hex, test.regs))!r}" yield from self.check_alu_outputs(alu, pdecode2, isa_sim, msg, pia_res) -- 2.30.2