project standard is to use c standard string specifiers NOT format
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 3 Dec 2023 18:08:36 +0000 (18:08 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 3 Dec 2023 18:08:36 +0000 (18:08 +0000)
NOT php-style "f"

src/openpower/decoder/isa/test_caller_ldst_exceptions.py

index fa375226733f88897ab33484dbe6fed0f2a4b997..0c5e68f446e37317ddcac25357b1051a654013ce 100644 (file)
@@ -55,7 +55,7 @@ def run_tst(generator, initial_regs, initial_sprs=None, svstate=0, mmu=False,
             yield Settle()
 
             ins, code = instructions[index]
-            print("    0x{:X}".format(ins & 0xffffffff))
+            print("    0x%x" % (ins & 0xffffffff))
             opname = code.split(' ')[0]
             print(code, opname)