Bug 699298 - Fix for windows build bustage
authorBill McCloskey <wmccloskey@mozilla.com>
Wed, 09 Nov 2011 13:53:47 -0800
changeset 80130 b5373c0d5a88e9fe95264a7cd857decc10d8d12b
parent 80129 c5012d179aee8000eadfc2a8481ea25a2e2d9240
child 80131 95ae882ae390859975293998c05ba77ba4f4d6a2
push id323
push userrcampbell@mozilla.com
push dateTue, 15 Nov 2011 21:58:36 +0000
treeherderfx-team@3ea216303184 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs699298
milestone11.0a1
Bug 699298 - Fix for windows build bustage
js/src/gc/Statistics.cpp
--- a/js/src/gc/Statistics.cpp
+++ b/js/src/gc/Statistics.cpp
@@ -35,47 +35,48 @@
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 #include <stdio.h>
 
 #include "jscntxt.h"
+#include "jscrashformat.h"
+#include "jscrashreport.h"
+#include "jsprf.h"
 #include "jsprobes.h"
 #include "jsutil.h"
-#include "jscrashformat.h"
-#include "jscrashreport.h"
 #include "prmjtime.h"
 
 #include "gc/Statistics.h"
 
 namespace js {
 namespace gcstats {
 
 Statistics::ColumnInfo::ColumnInfo(const char *title, double t, double total)
   : title(title)
 {
-    snprintf(str, sizeof(str), "%.1f", t);
-    snprintf(totalStr, sizeof(totalStr), "%.1f", total);
+    JS_snprintf(str, sizeof(str), "%.1f", t);
+    JS_snprintf(totalStr, sizeof(totalStr), "%.1f", total);
     width = 6;
 }
 
 Statistics::ColumnInfo::ColumnInfo(const char *title, double t)
   : title(title)
 {
-    snprintf(str, sizeof(str), "%.1f", t);
+    JS_snprintf(str, sizeof(str), "%.1f", t);
     strcpy(totalStr, "n/a");
     width = 6;
 }
 
 Statistics::ColumnInfo::ColumnInfo(const char *title, unsigned int data)
   : title(title)
 {
-    snprintf(str, sizeof(str), "%d", data);
+    JS_snprintf(str, sizeof(str), "%d", data);
     strcpy(totalStr, "n/a");
     width = 4;
 }
 
 Statistics::ColumnInfo::ColumnInfo(const char *title, const char *data)
   : title(title)
 {
     JS_ASSERT(strlen(data) < sizeof(str));