Chromium Code Reviews| Index: third_party/tcmalloc/chromium/src/heap-profile-table.cc |
| diff --git a/third_party/tcmalloc/chromium/src/heap-profile-table.cc b/third_party/tcmalloc/chromium/src/heap-profile-table.cc |
| index d880e562bda40757b82db5c7a797cbc12bb4a945..60005b2ba8bdf5b10c44a4b7ea0162c2cc9b4fcf 100644 |
| --- a/third_party/tcmalloc/chromium/src/heap-profile-table.cc |
| +++ b/third_party/tcmalloc/chromium/src/heap-profile-table.cc |
| @@ -519,7 +519,7 @@ void HeapProfileTable::DumpMarkedIterator(const void* ptr, AllocValue* v, |
| b.depth = v->bucket()->depth; |
| b.stack = v->bucket()->stack; |
| char addr[16]; |
| - snprintf(addr, 16, "0x%08" PRIxPTR, ptr); |
| + snprintf(addr, 16, "0x%08" PRIxPTR, (uintptr_t)ptr); |
|
jochen (gone - plz use gerrit)
2015/06/17 09:48:09
please use reinterpret_cast<intptr_t>
Thiemo Nagel
2015/06/17 11:22:46
Just out of curiosity: Why do you prefer intptr_t
|
| char buf[1024]; |
| int len = UnparseBucket(b, buf, 0, sizeof(buf), addr, NULL); |
| RawWrite(args.fd, buf, len); |