From 38e14ec41aa39ab80b24037736ce3fa9b2638e22 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 3 Dec 2023 18:05:30 +0000 Subject: [PATCH] project standard is to use c standard string specifiers NOT format NOT php-style "f" --- src/openpower/decoder/isa/pypowersim.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/openpower/decoder/isa/pypowersim.py b/src/openpower/decoder/isa/pypowersim.py index fed3091f..daec54de 100644 --- a/src/openpower/decoder/isa/pypowersim.py +++ b/src/openpower/decoder/isa/pypowersim.py @@ -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() -- 2.30.2