OSDN Git Service

Fixup more potential issues / warnings in string formats
authorMichael Wright <michaelwr@google.com>
Tue, 10 Jun 2014 20:03:17 +0000 (13:03 -0700)
committerMichael Wright <michaelwr@google.com>
Tue, 10 Jun 2014 20:03:17 +0000 (13:03 -0700)
Change-Id: I323e44f950b2e758dc9ff4510b2e13ca870eb849

libs/input/InputTransport.cpp

index 21fd443..090ee53 100644 (file)
@@ -301,7 +301,7 @@ status_t InputPublisher::publishMotionEvent(
             "action=0x%x, flags=0x%x, edgeFlags=0x%x, metaState=0x%x, buttonState=0x%x, "
             "xOffset=%f, yOffset=%f, "
             "xPrecision=%f, yPrecision=%f, downTime=%lld, eventTime=%lld, "
-            "pointerCount=%d",
+            "pointerCount=%" PRIu32,
             mChannel->getName().string(), seq,
             deviceId, source, action, flags, edgeFlags, metaState, buttonState,
             xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount);
@@ -313,7 +313,7 @@ status_t InputPublisher::publishMotionEvent(
     }
 
     if (pointerCount > MAX_POINTERS || pointerCount < 1) {
-        ALOGE("channel '%s' publisher ~ Invalid number of pointers provided: %"PRIu32".",
+        ALOGE("channel '%s' publisher ~ Invalid number of pointers provided: %" PRIu32 ".",
                 mChannel->getName().string(), pointerCount);
         return BAD_VALUE;
     }