Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1270)

Unified Diff: third_party/tcmalloc/chromium/src/deep-heap-profile.cc

Issue 21157004: c++11 ud suffix fixes for tcmalloc files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/chromium/src/deep-heap-profile.cc
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
index efbf4238b031980a0505ca3d8ecdfe0273f149b5..2b2d972e5ae310e24ae907f247779d6dc109172a 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
@@ -129,7 +129,7 @@ size_t DeepHeapProfile::MemoryInfoGetterLinux::CommittedSize(
if (Read(&state, pageframe_type_ != DUMP_NO_PAGEFRAME) == false) {
// We can't read the last region (e.g vsyscall).
#ifndef NDEBUG
- RAW_LOG(0, "pagemap read failed @ %#llx %"PRId64" bytes",
+ RAW_LOG(0, "pagemap read failed @ %#llx %" PRId64 " bytes",
first_address, last_address - first_address + 1);
#endif
return 0;
@@ -495,9 +495,9 @@ bool DeepHeapProfile::TextBuffer::AppendInt64(int64 value, int width) {
int available = size_ - cursor_;
int appended;
if (width == 0)
- appended = snprintf(position, available, "%"PRId64, value);
+ appended = snprintf(position, available, "%" PRId64, value);
else
- appended = snprintf(position, available, "%*"PRId64, width, value);
+ appended = snprintf(position, available, "%*" PRId64, width, value);
return ForwardCursor(appended);
}
@@ -506,9 +506,9 @@ bool DeepHeapProfile::TextBuffer::AppendPtr(uint64 value, int width) {
int available = size_ - cursor_;
int appended;
if (width == 0)
- appended = snprintf(position, available, "%"PRIx64, value);
+ appended = snprintf(position, available, "%" PRIx64, value);
else
- appended = snprintf(position, available, "%0*"PRIx64, width, value);
+ appended = snprintf(position, available, "%0*" PRIx64, width, value);
return ForwardCursor(appended);
}
@@ -947,7 +947,8 @@ void DeepHeapProfile::GlobalStats::SnapshotMaps(
int written = procmaps_iter.FormatLine(buffer, sizeof(buffer),
vma_start_addr, vma_last_addr,
flags, offset, inode, filename, 0);
- RAW_LOG(0, "[%d] Mismatched total in VMA %"PRId64":%"PRId64" (%"PRId64")",
+ RAW_LOG(0, "[%d] Mismatched total in VMA %" PRId64 ":"
+ "%" PRId64 " (%" PRId64 ")",
getpid(), vma_total, vma_subtotal, vma_total - vma_subtotal);
RAW_LOG(0, "[%d] in %s", getpid(), buffer);
}
« no previous file with comments | « third_party/tcmalloc/chromium/src/base/sysinfo.cc ('k') | third_party/tcmalloc/chromium/src/heap-profile-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698