Chromium Code Reviews| Index: base/debug/stack_trace_android.cc |
| =================================================================== |
| --- base/debug/stack_trace_android.cc (revision 254431) |
| +++ base/debug/stack_trace_android.cc (working copy) |
| @@ -104,12 +104,17 @@ |
| ++iter; |
| } |
| - *os << base::StringPrintf("#%02d 0x%08x ", i, address); |
| +#ifdef __LP64__ |
|
bulach
2014/03/03 09:15:41
nit: similarly to the previous file, please move t
|
| +#define FMT_ADDR "0x%016lx" |
| +#else |
| +#define FMT_ADDR "0x%08x" |
| +#endif |
| + *os << base::StringPrintf("#%02zd " FMT_ADDR " ", i, address); |
| if (iter != regions.end()) { |
| uintptr_t rel_pc = address - iter->start + iter->offset; |
| const char* path = iter->path.c_str(); |
| - *os << base::StringPrintf("%s+0x%08x", path, rel_pc); |
| + *os << base::StringPrintf("%s+" FMT_ADDR, path, rel_pc); |
| } else { |
| *os << "<unknown>"; |
| } |