summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-04-18 18:44:08 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-04-18 18:44:09 +0000
commitc871add2f9eb6cfb0be3fd2c9613af7315152e57 (patch)
treec88679f92a49ac21fa2eecb4e2317d499db51b31
parentcf1ee150eeee1bd5c1db2d8f56486c2d6afefa45 (diff)
parent5cb33dca19367ed4c9e268dab93132d26ecffd99 (diff)
downloadlibhardware-c871add2f9eb6cfb0be3fd2c9613af7315152e57.tar.gz
Merge "Fix format string warnings in InputHub.cpp."
-rw-r--r--modules/input/evdev/InputHub.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/input/evdev/InputHub.cpp b/modules/input/evdev/InputHub.cpp
index 389955d0..e2c65fa4 100644
--- a/modules/input/evdev/InputHub.cpp
+++ b/modules/input/evdev/InputHub.cpp
@@ -610,7 +610,7 @@ status_t InputHub::poll() {
for (;;) {
ssize_t readSize = TEMP_FAILURE_RETRY(read(inputFd, ievs, sizeof(ievs)));
if (readSize == 0 || (readSize < 0 && errno == ENODEV)) {
- ALOGW("could not get event, removed? (fd: %d, size: %d errno: %d)",
+ ALOGW("could not get event, removed? (fd: %d, size: %zd errno: %d)",
inputFd, readSize, errno);
removedDeviceFds.push_back(inputFd);
@@ -621,7 +621,7 @@ status_t InputHub::poll() {
}
break;
} else if (readSize % sizeof(input_event) != 0) {
- ALOGE("could not get event. wrong size=%d", readSize);
+ ALOGE("could not get event. wrong size=%zd", readSize);
break;
} else {
size_t count = static_cast<size_t>(readSize) / sizeof(struct input_event);
@@ -702,7 +702,7 @@ status_t InputHub::readNotify() {
if (event->mask & IN_CREATE) {
auto deviceNode = openNode(path);
if (deviceNode == nullptr) {
- ALOGE("could not open device node %s. err=%d", path.c_str(), res);
+ ALOGE("could not open device node %s. err=%zd", path.c_str(), res);
} else {
mInputCallback->onDeviceAdded(deviceNode);
}