Commit 1dfb9107 authored by Darius Mercadier's avatar Darius Mercadier Committed by Commit Bot

[heap] Fix usage of printf instead of PrintF

Change-Id: Ic483412145cabd2fce8f556fd56ca352dbe4ce17
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1695466Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Darius Mercadier <dmercadier@google.com>
Cr-Commit-Position: refs/heads/master@{#62637}
parent 27ed9b43
...@@ -3808,7 +3808,7 @@ void Page::Print() { ...@@ -3808,7 +3808,7 @@ void Page::Print() {
// Make a best-effort to print the objects in the page. // Make a best-effort to print the objects in the page.
PrintF("Page@%p in %s\n", reinterpret_cast<void*>(this->address()), PrintF("Page@%p in %s\n", reinterpret_cast<void*>(this->address()),
Heap::GetSpaceName(this->owner_identity())); Heap::GetSpaceName(this->owner_identity()));
printf(" --------------------------------------\n"); PrintF(" --------------------------------------\n");
PagedSpaceObjectIterator objects(this); PagedSpaceObjectIterator objects(this);
unsigned mark_size = 0; unsigned mark_size = 0;
for (HeapObject object = objects.Next(); !object.is_null(); for (HeapObject object = objects.Next(); !object.is_null();
...@@ -3822,8 +3822,8 @@ void Page::Print() { ...@@ -3822,8 +3822,8 @@ void Page::Print() {
object.ShortPrint(); object.ShortPrint();
PrintF("\n"); PrintF("\n");
} }
printf(" --------------------------------------\n"); PrintF(" --------------------------------------\n");
printf(" Marked: %x, LiveCount: %" V8PRIdPTR "\n", mark_size, PrintF(" Marked: %x, LiveCount: %" V8PRIdPTR "\n", mark_size,
heap()->incremental_marking()->marking_state()->live_bytes(this)); heap()->incremental_marking()->marking_state()->live_bytes(this));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment