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

src/openpower/decoder/isa/pypowersim.py

index fed3091f83ea7c19cbace36f65c02f7751be68d7..daec54de36d330963dba9d8c325670294125cac8 100644 (file)
@@ -209,11 +209,9 @@ def run_tst(args, generator, qemu,
                 ins = instructions[index]
                 if isinstance(ins, list):
                     ins, code = ins
-                    log("    0x{:X}".format(ins & 0xffffffff))
                     opname = code.split(' ')[0]
                     log(code, opname)
-                else:
-                    log("    0x{:X}".format(ins & 0xffffffff))
+                log("    0x%x" % (ins & 0xffffffff))
 
             # ask the decoder to decode this binary data (endian'd)
             yield from simulator.execute_one()