Bug 1059132 - Bustage fix: fix printf format.
authorPaul Adenot <paul@paul.cx>
Thu, 28 Aug 2014 19:34:35 +0200
changeset 202242 c105712ba3e0d0257e6de4ea51d803fcefb7bfea
parent 202241 602966888eb0643b0580b14205ac75c6474fd422
child 202243 d697d649c76557865c96636f4c2ca805a77acbaa
child 202244 2f94e060bac3b2e4b22b047e10f993418edbb0f8
push idunknown
push userunknown
push dateunknown
bugs1059132
milestone34.0a1
Bug 1059132 - Bustage fix: fix printf format.
content/media/GraphDriver.cpp
--- a/content/media/GraphDriver.cpp
+++ b/content/media/GraphDriver.cpp
@@ -84,17 +84,17 @@ void GraphDriver::EnsureImmediateWakeUpL
 
 void GraphDriver::UpdateStateComputedTime(GraphTime aStateComputedTime)
 {
   MOZ_ASSERT(aStateComputedTime > mIterationEnd);
   // The next state computed time can be the same as the previous, here: it
   // means the driver would be have been blocking indefinitly, but the graph has
   // been woken up right after having been to sleep.
   if (aStateComputedTime < mStateComputedTime) {
-    printf("State time can't go backward %ld < mStateComputedTime.\n", aStateComputedTime, mStateComputedTime);
+    printf("State time can't go backward %ld < %ld.\n", static_cast<long>(aStateComputedTime), static_cast<long>(mStateComputedTime));
   }
 
   mStateComputedTime = aStateComputedTime;
 }
 
 void GraphDriver::EnsureNextIteration()
 {
   MonitorAutoLock lock(mGraphImpl->GetMonitor());