Bug 1383206 - Fix format string for in GC slice statistics. r=sfink
authorTed Campbell <tcampbell@mozilla.com>
Fri, 21 Jul 2017 14:46:47 -0400
changeset 419027 7e496e6bac00d2acbf3dcd5615c13d4ac489724e
parent 419026 ffb8e24e573e86b119c7bd9531136089f52c3503
child 419068 a599289ac64ba1d52a1552e33150342746e3e61b
child 419072 81534872cf3f43c0812f5955bc34e4e97a3cd950
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1383206
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1383206 - Fix format string for in GC slice statistics. r=sfink MozReview-Commit-ID: 7eLrYNtb4jv
js/src/gc/Statistics.cpp
--- a/js/src/gc/Statistics.cpp
+++ b/js/src/gc/Statistics.cpp
@@ -446,17 +446,17 @@ Statistics::formatDetailedSliceDescripti
     slice.budget.describe(budgetDescription, sizeof(budgetDescription) - 1);
 
     const char* format =
 "\
   ---- Slice %u ----\n\
     Reason: %s\n\
     Reset: %s%s\n\
     State: %s -> %s\n\
-    Page Faults: %ld\n\
+    Page Faults: %" PRIu64 "\n\
     Pause: %.3fms of %s budget (@ %.3fms)\n\
 ";
     char buffer[1024];
     SprintfLiteral(buffer, format, i, ExplainReason(slice.reason),
                    slice.wasReset() ? "yes - " : "no",
                    slice.wasReset() ? ExplainAbortReason(slice.resetReason) : "",
                    gc::StateName(slice.initialState), gc::StateName(slice.finalState),
                    uint64_t(slice.endFaults - slice.startFaults),