From 3c05ce60372cb2eba39d6eb87ac05af8a664e1b1 Mon Sep 17 00:00:00 2001 From: "Jonathan B. Coe" Date: Wed, 6 Oct 2021 12:17:04 +0100 Subject: [PATCH] Fix to enable build with Python3 Add conversion to int in log message so that headers can be generated with Python3 --- scripts/ud_opcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ud_opcode.py b/scripts/ud_opcode.py index fe1833d..30c9f43 100644 --- a/scripts/ud_opcode.py +++ b/scripts/ud_opcode.py @@ -550,10 +550,10 @@ def printWalk(tbl, indent=""): entries = tbl.entries() for k, e in entries: if isinstance(e, UdOpcodeTable): - self.log("%s |-<%02x> %s" % (indent, k, e)) + self.log("%s |-<%02x> %s" % (indent, int(k), e)) printWalk(e, indent + " |") elif isinstance(e, UdInsnDef): - self.log("%s |-<%02x> %s" % (indent, k, e)) + self.log("%s |-<%02x> %s" % (indent, int(k), e)) printWalk(self.root)