print regs in hex
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 6 Oct 2020 00:16:29 +0000 (17:16 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Tue, 6 Oct 2020 00:16:29 +0000 (17:16 -0700)
src/soc/fu/div/test/helper.py

index 3b57b52933b79298cf16719c5e932e945c0deb4b..f368cf74462762433f79052b4d99bcc13ce26981 100644 (file)
@@ -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)