Bug 1063138 - Fix some incorrect debug printf format specifiers. r=botond, a=bajaj
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 03 Oct 2014 13:39:38 -0400
changeset 218331 1d702b495ca88325c114d4b925a9fc4fdbca8303
parent 218330 6f41ec3f30e488241fd5190988152afbd0343162
child 218332 20489053659f2a6ee05699e4f7a0635a196c2db3
push id7088
push userryanvm@gmail.com
push dateSat, 11 Oct 2014 00:36:06 +0000
treeherdermozilla-aurora@c9d7c20b83f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond, bajaj
bugs1063138
milestone34.0a2
Bug 1063138 - Fix some incorrect debug printf format specifiers. r=botond, a=bajaj
gfx/layers/apz/src/GestureEventListener.cpp
gfx/layers/apz/src/InputBlockState.cpp
--- a/gfx/layers/apz/src/GestureEventListener.cpp
+++ b/gfx/layers/apz/src/GestureEventListener.cpp
@@ -61,17 +61,17 @@ GestureEventListener::GestureEventListen
 }
 
 GestureEventListener::~GestureEventListener()
 {
 }
 
 nsEventStatus GestureEventListener::HandleInputEvent(const MultiTouchInput& aEvent)
 {
-  GEL_LOG("Receiving event type %d with %d touches in state %d\n", aEvent.mType, aEvent.mTouches.Length(), mState);
+  GEL_LOG("Receiving event type %d with %lu touches in state %d\n", aEvent.mType, aEvent.mTouches.Length(), mState);
 
   nsEventStatus rv = nsEventStatus_eIgnore;
 
   // Cache the current event since it may become the single or long tap that we
   // send.
   mLastTouchInput = aEvent;
 
   switch (aEvent.mType) {
--- a/gfx/layers/apz/src/InputBlockState.cpp
+++ b/gfx/layers/apz/src/InputBlockState.cpp
@@ -71,17 +71,17 @@ TouchBlockState::TimeoutContentResponse(
 }
 
 bool
 TouchBlockState::SetAllowedTouchBehaviors(const nsTArray<TouchBehaviorFlags>& aBehaviors)
 {
   if (mAllowedTouchBehaviorSet) {
     return false;
   }
-  TBS_LOG("%p got allowed touch behaviours for %d points\n", this, aBehaviors.Length());
+  TBS_LOG("%p got allowed touch behaviours for %lu points\n", this, aBehaviors.Length());
   mAllowedTouchBehaviors.AppendElements(aBehaviors);
   mAllowedTouchBehaviorSet = true;
   return true;
 }
 
 bool
 TouchBlockState::CopyAllowedTouchBehaviorsFrom(const TouchBlockState& aOther)
 {
@@ -145,25 +145,25 @@ TouchBlockState::AddEvent(const MultiTou
 {
   TBS_LOG("%p adding event of type %d\n", this, aEvent.mType);
   mEvents.AppendElement(aEvent);
 }
 
 void
 TouchBlockState::DropEvents()
 {
-  TBS_LOG("%p dropping %d events\n", this, mEvents.Length());
+  TBS_LOG("%p dropping %lu events\n", this, mEvents.Length());
   mEvents.Clear();
 }
 
 MultiTouchInput
 TouchBlockState::RemoveFirstEvent()
 {
   MOZ_ASSERT(!mEvents.IsEmpty());
-  TBS_LOG("%p returning first of %d events\n", this, mEvents.Length());
+  TBS_LOG("%p returning first of %lu events\n", this, mEvents.Length());
   MultiTouchInput event = mEvents[0];
   mEvents.RemoveElementAt(0);
   return event;
 }
 
 bool
 TouchBlockState::TouchActionAllowsPinchZoom() const
 {