From: Luke Kenneth Casson Leighton Date: Sun, 3 Dec 2023 18:05:30 +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=c3b3dc86e8c446c95c2472d8dac11146d0629b31;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/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()