Bug 690432: Fix "format not a string literal and no format arguments" error in gfx logging code. r=bas
authorChris Coulson <chrisccoulson@ubuntu.com>
Thu, 29 Sep 2011 12:25:07 -0700
changeset 77874 719cb2ed1bf6a99c51e9ba00a4b48c2834fa3af6
parent 77873 5d06ccaa88f055f4d03fbd248abc6699c6149212
child 77875 547933c90c5f78fc30c76bb7397de9bc5ea50708
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersbas
bugs690432
milestone10.0a1
Bug 690432: Fix "format not a string literal and no format arguments" error in gfx logging code. r=bas
gfx/2d/Logging.h
--- a/gfx/2d/Logging.h
+++ b/gfx/2d/Logging.h
@@ -82,17 +82,17 @@ static void OutputMessage(const std::str
     ::OutputDebugStringA(aString.c_str());
   }
 #elif defined(PR_LOGGING)
   if (PR_LOG_TEST(sGFX2DLog, PRLogLevelForLevel(aLevel))) {
     PR_LogPrint(aString.c_str());
   }
 #else
   if (aLevel >= sGfxLogLevel) {
-    printf(aString.c_str());
+    printf("%s", aString.c_str());
   }
 #endif
 }
 
 class NoLog
 {
 public:
   NoLog() {}