Bug 1057066: Fix fprintf format string warning. (r=Waldo over IRC)
authorEric Faust <efaustbmo@gmail.com>
Thu, 21 Aug 2014 14:27:25 -0700
changeset 200890 e5474fa8f59368e6841e7b1e42f5a66ddf315720
parent 200889 bc6b890d765ba354666caf2d8b84b3900246b8f7
child 200891 abd8044b38c216770497236360d9d05f6b13bf1a
push id48034
push userefaustbmo@gmail.com
push dateThu, 21 Aug 2014 21:28:59 +0000
treeherdermozilla-inbound@e5474fa8f593 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs1057066
milestone34.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 1057066: Fix fprintf format string warning. (r=Waldo over IRC)
js/src/jit/IonSpewer.cpp
--- a/js/src/jit/IonSpewer.cpp
+++ b/js/src/jit/IonSpewer.cpp
@@ -391,17 +391,17 @@ jit::IonSpew(IonSpewChannel channel, con
 
 void
 jit::IonSpewDef(IonSpewChannel channel, const char *str, MDefinition *def)
 {
     if (!IonSpewEnabled(channel))
         return;
 
     IonSpewHeader(channel);
-    fprintf(IonSpewFile, str);
+    fprintf(IonSpewFile, "%s", str);
     def->dump(IonSpewFile);
     def->dumpLocation(IonSpewFile);
 }
 
 void
 jit::IonSpewStart(IonSpewChannel channel, const char *fmt, ...)
 {
     va_list ap;