diff options
author | Dan Bornstein <danfuzz@android.com> | 2011-05-26 10:46:25 -0700 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2011-05-26 10:46:25 -0700 |
commit | 291c84f60853d30e1c0d79dd08c5e5164f588e26 (patch) | |
tree | b9c4b6389c00b0b1f55bef1cc9cb244139e841f6 /vm/compiler/codegen/arm/ArchUtility.cpp | |
parent | 60fc806b679a3655c228b4093058c59941a49cfe (diff) | |
download | android_dalvik-291c84f60853d30e1c0d79dd08c5e5164f588e26.tar.gz android_dalvik-291c84f60853d30e1c0d79dd08c5e5164f588e26.tar.bz2 android_dalvik-291c84f60853d30e1c0d79dd08c5e5164f588e26.zip |
Prefer printf format "%#x" over "0x%x".
I exist to serve.
Change-Id: I8e2880b20eefd466da8515d5b6b0c5cb75d56169
Diffstat (limited to 'vm/compiler/codegen/arm/ArchUtility.cpp')
-rw-r--r-- | vm/compiler/codegen/arm/ArchUtility.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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]); |