diff options
| author | 2014-01-24 18:21:36 +0000 | |
|---|---|---|
| committer | 2014-01-24 18:21:36 +0000 | |
| commit | 67122a03a4c66e01c4b64364a3701fe6ec3c5a18 (patch) | |
| tree | 4e53a81c0c28a705795f293871a6960cb42b6155 /compiler/dex/quick/codegen_util.cc | |
| parent | 3f5b42f1d31c877abca2571a51dd0a5055a9b94c (diff) | |
| parent | 107c31e598b649a8bb8d959d6a0377937e63e624 (diff) | |
Merge "64bit friendly printf modifiers in LIR dumping."
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
| -rw-r--r-- | compiler/dex/quick/codegen_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc index 2ce7ecdecc..12ecfff935 100644 --- a/compiler/dex/quick/codegen_util.cc +++ b/compiler/dex/quick/codegen_util.cc @@ -34,7 +34,7 @@ template <typename It> void DumpMappingTable(const char* table_name, const char* descriptor, const char* name, const Signature& signature, uint32_t size, It first) { if (size != 0) { - std::string line(StringPrintf("\n %s %s%s_%s_table[%zu] = {", table_name, + std::string line(StringPrintf("\n %s %s%s_%s_table[%u] = {", table_name, descriptor, name, signature.ToString().c_str(), size)); std::replace(line.begin(), line.end(), ';', '_'); LOG(INFO) << line; @@ -234,8 +234,8 @@ void Mir2Lir::DumpLIRInsn(LIR* lir, unsigned char* base_addr) { lir, base_addr)); std::string op_operands(BuildInsnString(GetTargetInstFmt(lir->opcode), lir, base_addr)); - LOG(INFO) << StringPrintf("%05x: %-9s%s%s", - reinterpret_cast<unsigned int>(base_addr + offset), + LOG(INFO) << StringPrintf("%5p: %-9s%s%s", + base_addr + offset, op_name.c_str(), op_operands.c_str(), lir->flags.is_nop ? "(nop)" : ""); } |