From 9ba1906470f790cc5d4aaecaca95c30e90b0bc8e Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 12 Nov 2014 10:13:11 +0800 Subject: [PATCH] python: test_ppc.py prints crx.scale & crx.cond as integers --- bindings/python/test_ppc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/python/test_ppc.py b/bindings/python/test_ppc.py index 36b538e2c..52d76d57f 100755 --- a/bindings/python/test_ppc.py +++ b/bindings/python/test_ppc.py @@ -39,14 +39,14 @@ def print_insn_detail(insn): % (c, to_x_32(i.mem.disp))) if i.type == PPC_OP_CRX: print("\t\toperands[%u].type: CRX" % c) - print("\t\t\toperands[%u].crx.scale: = %s" \ + print("\t\t\toperands[%u].crx.scale: = %u" \ % (c, i.crx.scale)) if i.crx.reg != 0: print("\t\t\toperands[%u].crx.reg: REG = %s" \ % (c, insn.reg_name(i.crx.reg))) if i.crx.cond != 0: - print("\t\t\toperands[%u].crx.cond: 0x%s" \ - % (c, to_x_32(i.crx.cond))) + print("\t\t\toperands[%u].crx.cond: 0x%x" \ + % (c, i.crx.cond)) c += 1 if insn.bc: