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

src/openpower/decoder/isa/test_runner.py

index 201cac93af3c572d2da3d595aa93151db3122923..44843d378fa0aa99622058a514a655e2633bd67f 100644 (file)
@@ -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)