From 291c84f60853d30e1c0d79dd08c5e5164f588e26 Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Thu, 26 May 2011 10:46:25 -0700 Subject: Prefer printf format "%#x" over "0x%x". I exist to serve. Change-Id: I8e2880b20eefd466da8515d5b6b0c5cb75d56169 --- vm/compiler/codegen/arm/ArchUtility.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm/compiler/codegen/arm/ArchUtility.cpp') diff --git a/vm/compiler/codegen/arm/ArchUtility.cpp b/vm/compiler/codegen/arm/ArchUtility.cpp index ecc67db08..0bbb87588 100644 --- a/vm/compiler/codegen/arm/ArchUtility.cpp +++ b/vm/compiler/codegen/arm/ArchUtility.cpp @@ -138,11 +138,11 @@ static void buildInsnString(const char *fmt, ArmLIR *lir, char* buf, break; case 'n': operand = ~expandImmediate(operand); - sprintf(tbuf,"%d [0x%x]", operand, operand); + sprintf(tbuf,"%d [%#x]", operand, operand); break; case 'm': operand = expandImmediate(operand); - sprintf(tbuf,"%d [0x%x]", operand, operand); + sprintf(tbuf,"%d [%#x]", operand, operand); break; case 's': sprintf(tbuf,"s%d",operand & FP_REG_MASK); @@ -413,7 +413,7 @@ void dvmCompilerCodegenDump(CompilationUnit *cUnit) } for (lirInsn = cUnit->literalList; lirInsn; lirInsn = lirInsn->next) { armLIR = (ArmLIR *) lirInsn; - LOGD("%p (%04x): .word (0x%x)", + LOGD("%p (%04x): .word (%#x)", (char*)cUnit->baseAddr + armLIR->generic.offset, armLIR->generic.offset, armLIR->operands[0]); -- cgit v1.2.3