From 532f38bf3fbac400894da3c479166d916c222994 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 3 Dec 2023 18:07:33 +0000 Subject: [PATCH] project standard is to use c standard string specifiers NOT format NOT php-style "f" --- src/openpower/decoder/isa/test_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openpower/decoder/isa/test_runner.py b/src/openpower/decoder/isa/test_runner.py index 201cac93..44843d37 100644 --- a/src/openpower/decoder/isa/test_runner.py +++ b/src/openpower/decoder/isa/test_runner.py @@ -71,7 +71,7 @@ class ISATestRunner(FHDLTestCase): yield Settle() ins, code = instructions[index] - print(" 0x{:X}".format(ins & 0xffffffff)) + print(" 0x%x" % (ins & 0xffffffff)) opname = code.split(' ')[0] print(code, opname) @@ -156,7 +156,7 @@ def run_tst(generator, initial_regs, yield Settle() ins, code = instructions[index] - print(" 0x{:X}".format(ins & 0xffffffff)) + print(" 0x%x" % (ins & 0xffffffff)) opname = code.split(' ')[0] print(code, opname) -- 2.30.2