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

src/openpower/decoder/power_pseudo.py

index 0bcaa634146b7e5a0c0ba259a567fb88d3b2f209..f0504a293fa4baef9701854fd44f14c77911a21c 100644 (file)
@@ -365,7 +365,7 @@ def test():
 
     def process():
         for ins in instr:
-            log("0x{:X}".format(ins & 0xffffffff))
+            log("0x%x" % (ins & 0xffffffff))
 
             # ask the decoder to decode this binary data (endian'd)
             yield decode.bigendian.eq(0)  # little / big?