Title: [229965] trunk/Source/WTF
Revision
229965
Author
clo...@igalia.com
Date
2018-03-25 17:54:22 -0700 (Sun, 25 Mar 2018)

Log Message

WebProcess memory monitor: use %zu format specifier for size_t
https://bugs.webkit.org/show_bug.cgi?id=183997

Reviewed by Michael Catanzaro.

usse %zu format specifier for size_t instead of %lu.

* wtf/MemoryPressureHandler.cpp:
(WTF::MemoryPressureHandler::shrinkOrDie):
(WTF::MemoryPressureHandler::measurementTimerFired):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (229964 => 229965)


--- trunk/Source/WTF/ChangeLog	2018-03-25 20:22:36 UTC (rev 229964)
+++ trunk/Source/WTF/ChangeLog	2018-03-26 00:54:22 UTC (rev 229965)
@@ -1,3 +1,16 @@
+2018-03-25  Carlos Alberto Lopez Perez  <clo...@igalia.com>
+
+        WebProcess memory monitor: use %zu format specifier for size_t
+        https://bugs.webkit.org/show_bug.cgi?id=183997
+
+        Reviewed by Michael Catanzaro.
+
+        usse %zu format specifier for size_t instead of %lu.
+
+        * wtf/MemoryPressureHandler.cpp:
+        (WTF::MemoryPressureHandler::shrinkOrDie):
+        (WTF::MemoryPressureHandler::measurementTimerFired):
+
 2018-03-25  Tim Horton  <timothy_hor...@apple.com>
 
         Add and adopt ENABLE(AIRPLAY_PICKER)

Modified: trunk/Source/WTF/wtf/MemoryPressureHandler.cpp (229964 => 229965)


--- trunk/Source/WTF/wtf/MemoryPressureHandler.cpp	2018-03-25 20:22:36 UTC (rev 229964)
+++ trunk/Source/WTF/wtf/MemoryPressureHandler.cpp	2018-03-26 00:54:22 UTC (rev 229965)
@@ -141,7 +141,7 @@
 
     auto footprint = memoryFootprint();
     RELEASE_ASSERT(footprint);
-    RELEASE_LOG(MemoryPressure, "New memory footprint: %lu MB", footprint.value() / MB);
+    RELEASE_LOG(MemoryPressure, "New memory footprint: %zu MB", footprint.value() / MB);
 
     if (footprint.value() < thresholdForMemoryKill()) {
         RELEASE_LOG(MemoryPressure, "Shrank below memory kill threshold. Process gets to live.");
@@ -149,7 +149,7 @@
         return;
     }
 
-    WTFLogAlways("Unable to shrink memory footprint of process (%lu MB) below the kill thresold (%lu MB). Killed\n", footprint.value() / MB, thresholdForMemoryKill() / MB);
+    WTFLogAlways("Unable to shrink memory footprint of process (%zu MB) below the kill thresold (%zu MB). Killed\n", footprint.value() / MB, thresholdForMemoryKill() / MB);
     RELEASE_ASSERT(m_memoryKillCallback);
     m_memoryKillCallback();
 }
@@ -171,7 +171,7 @@
     if (!footprint)
         return;
 
-    RELEASE_LOG(MemoryPressure, "Current memory footprint: %lu MB", footprint.value() / MB);
+    RELEASE_LOG(MemoryPressure, "Current memory footprint: %zu MB", footprint.value() / MB);
     if (footprint.value() >= thresholdForMemoryKill()) {
         shrinkOrDie();
         return;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to