Bug 1063168 - Fix some incorrect debug printf format specifiers. r=botond
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 03 Oct 2014 13:39:38 -0400
changeset 231986 eaa8c62e29f650fd254241f11b0862d3473230ad
parent 231985 e057f4f45d357d1ebfdc69ed681f59f831211e3c
child 231987 3bea361c1f4014e09fdcee60db8b585b104acab9
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-beta@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond
bugs1063168
milestone35.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 1063168 - Fix some incorrect debug printf format specifiers. r=botond
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
@@ -62,17 +62,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
 {