Title: [127353] trunk/Source/WebKit2
Revision
127353
Author
[email protected]
Date
2012-08-31 20:46:00 -0700 (Fri, 31 Aug 2012)

Log Message

Build warning : -Wformat on WebMemorySampler.cpp.
https://bugs.webkit.org/show_bug.cgi?id=95550

Patch by Byungwoo Lee <[email protected]> on 2012-08-31
Reviewed by Darin Adler.

Fix build warning.
Use String::number instead of String::format.

* Shared/WebMemorySampler.cpp:
(WebKit::WebMemorySampler::appendCurrentMemoryUsageToFile):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (127352 => 127353)


--- trunk/Source/WebKit2/ChangeLog	2012-09-01 03:08:43 UTC (rev 127352)
+++ trunk/Source/WebKit2/ChangeLog	2012-09-01 03:46:00 UTC (rev 127353)
@@ -1,3 +1,16 @@
+2012-08-31  Byungwoo Lee  <[email protected]>
+
+        Build warning : -Wformat on WebMemorySampler.cpp.
+        https://bugs.webkit.org/show_bug.cgi?id=95550
+
+        Reviewed by Darin Adler.
+
+        Fix build warning.
+        Use String::number instead of String::format.
+
+        * Shared/WebMemorySampler.cpp:
+        (WebKit::WebMemorySampler::appendCurrentMemoryUsageToFile):
+
 2012-08-31  Alexey Proskuryakov  <[email protected]>
 
         [WK2] Use initial process in multi-process mode, too

Modified: trunk/Source/WebKit2/Shared/WebMemorySampler.cpp (127352 => 127353)


--- trunk/Source/WebKit2/Shared/WebMemorySampler.cpp	2012-09-01 03:08:43 UTC (rev 127352)
+++ trunk/Source/WebKit2/Shared/WebMemorySampler.cpp	2012-09-01 03:46:00 UTC (rev 127353)
@@ -175,7 +175,7 @@
         statString.append(m_separator);
         for (size_t i = 0; i < memoryStats.values.size(); ++i) {
             statString.append(m_separator);
-            statString.append(String::format("%lu", memoryStats.values[i]));
+            statString.append(String::number(memoryStats.values[i]));
         }
     }
     statString.append(String("\n"));
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to