Fix invalid printf format compiler warning
authorMiko Mynttinen <mikokm@gmail.com>
Thu, 05 Oct 2017 17:33:43 +0200
changeset 685672 0bd172a1b80b025f1e3bdd13476a126d9e2ce4ee
parent 685671 ee8107eb074690f369740e5b5f15d279787c8fb0
child 685673 66e4d259fae89c28c4725d5f785de9d2a2ede20a
push id86010
push userbmo:ethlin@mozilla.com
push dateWed, 25 Oct 2017 00:44:42 +0000
milestone58.0a1
Fix invalid printf format compiler warning
layout/base/nsLayoutUtils.cpp
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -3891,17 +3891,17 @@ nsLayoutUtils::PaintFrame(gfxContext* aR
         pt->dlMs() = retainedBuildTime;
         pt->dl2Ms() = fullBuildTime;
       } else if (pt) {
         pt->dlMs() = (TimeStamp::Now() - dlTotalStart).ToMilliseconds();
       }
     }
 
     if (stats.triedPartial && gfxPrefs::LayoutDisplayListBuildTwice()) {
-      printf(R"({ "retained": %.3f, "full": %.3f, "modifiedFrames": %lu, )"
+      printf(R"({ "retained": %.3f, "full": %.3f, "modifiedFrames": %zu, )"
              R"("merged": %d, "items": { )"
              R"("list": %u, "old": %u, "new": %u, "reused": %u } },)" "\n",
         retainedBuildTime, fullBuildTime, stats.frames.Length(), stats.merged,
         stats.totalItems, stats.oldItems, stats.newItems, stats.reusedItems);
 
 #if 0
       printf("Modified frames:\n");
       for (nsIFrame* frame : stats.frames) {