diff options
author | Narayan Kamath <narayan@google.com> | 2014-03-27 14:21:09 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-03-27 14:27:42 +0000 |
commit | 37764c71a0ac79142f90bb112b6cabffb940b955 (patch) | |
tree | da5df0deab8f39cc70ee699db549a6cafa8e592e /services/inputflinger/InputReader.cpp | |
parent | f3ed9a21b83df1e1b4aa8d2cdd08114de3484b59 (diff) | |
download | frameworks_native-37764c71a0ac79142f90bb112b6cabffb940b955.zip frameworks_native-37764c71a0ac79142f90bb112b6cabffb940b955.tar.gz frameworks_native-37764c71a0ac79142f90bb112b6cabffb940b955.tar.bz2 |
Cherry pick parts of f5df700e6ce.
This is logically a part of the merge conflict resolution for
22d07464 to master. These files moved across git repositories.
Change-Id: Id95bfa0bf503295f2c02a201f4bec5243d169ec4
Diffstat (limited to 'services/inputflinger/InputReader.cpp')
-rw-r--r-- | services/inputflinger/InputReader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/inputflinger/InputReader.cpp b/services/inputflinger/InputReader.cpp index 66f907a..f27ba96 100644 --- a/services/inputflinger/InputReader.cpp +++ b/services/inputflinger/InputReader.cpp @@ -6174,8 +6174,8 @@ void MultiTouchInputMapper::configureRawPointerAxes() { && mRawPointerAxes.slot.minValue == 0 && mRawPointerAxes.slot.maxValue > 0) { size_t slotCount = mRawPointerAxes.slot.maxValue + 1; if (slotCount > MAX_SLOTS) { - ALOGW("MultiTouch Device %s reported %d slots but the framework " - "only supports a maximum of %d slots at this time.", + ALOGW("MultiTouch Device %s reported %zu slots but the framework " + "only supports a maximum of %zu slots at this time.", getDeviceName().string(), slotCount, MAX_SLOTS); slotCount = MAX_SLOTS; } @@ -6347,7 +6347,7 @@ void JoystickInputMapper::configure(nsecs_t when, // If there are too many axes, start dropping them. // Prefer to keep explicitly mapped axes. if (mAxes.size() > PointerCoords::MAX_AXES) { - ALOGI("Joystick '%s' has %d axes but the framework only supports a maximum of %d.", + ALOGI("Joystick '%s' has %zu axes but the framework only supports a maximum of %d.", getDeviceName().string(), mAxes.size(), PointerCoords::MAX_AXES); pruneAxes(true); pruneAxes(false); |