Commit 34e0596a authored by ziyang's avatar ziyang Committed by Commit bot

S390: Change printf format specifier for size_t in GcTracer

GCC on S390 31-bit treats size_t as 'long unsigned int', which
is incompatible with %d format specifier that expects an 'int'.
Using the appropriate macro (PRIuS) instead.

R=mlippautz@chromium.org, ulan@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2412563003
Cr-Commit-Position: refs/heads/master@{#40276}
parent 3f8a85ce
......@@ -457,19 +457,19 @@ void GCTracer::PrintNVP() const {
"steps_count=%d "
"steps_took=%.1f "
"scavenge_throughput=%.f "
"total_size_before=%" V8PRIdPTR
"total_size_before=%" PRIuS
" "
"total_size_after=%" V8PRIdPTR
"total_size_after=%" PRIuS
" "
"holes_size_before=%" V8PRIdPTR
"holes_size_before=%" PRIuS
" "
"holes_size_after=%" V8PRIdPTR
"holes_size_after=%" PRIuS
" "
"allocated=%" V8PRIdPTR
"allocated=%" PRIuS
" "
"promoted=%" V8PRIdPTR
"promoted=%" PRIuS
" "
"semi_space_copied=%" V8PRIdPTR
"semi_space_copied=%" PRIuS
" "
"nodes_died_in_new=%d "
"nodes_copied_in_new=%d "
......@@ -569,19 +569,19 @@ void GCTracer::PrintNVP() const {
"incremental_steps_count=%d "
"incremental_marking_throughput=%.f "
"incremental_walltime_duration=%.f "
"total_size_before=%" V8PRIdPTR
"total_size_before=%" PRIuS
" "
"total_size_after=%" V8PRIdPTR
"total_size_after=%" PRIuS
" "
"holes_size_before=%" V8PRIdPTR
"holes_size_before=%" PRIuS
" "
"holes_size_after=%" V8PRIdPTR
"holes_size_after=%" PRIuS
" "
"allocated=%" V8PRIdPTR
"allocated=%" PRIuS
" "
"promoted=%" V8PRIdPTR
"promoted=%" PRIuS
" "
"semi_space_copied=%" V8PRIdPTR
"semi_space_copied=%" PRIuS
" "
"nodes_died_in_new=%d "
"nodes_copied_in_new=%d "
......
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