From: Luke Kenneth Casson Leighton Date: Sun, 3 Dec 2023 18:07:33 +0000 (+0000) Subject: project standard is to use c standard string specifiers NOT format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db3f602ad06791ea848fc7e9c2962cb8fc33f39e;p=openpower-isa.git project standard is to use c standard string specifiers NOT format NOT php-style "f" --- 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)