summaryrefslogtreecommitdiff
path: root/services/input/EventHub.cpp
diff options
context:
space:
mode:
author Jean-Baptiste Queru <jbq@google.com> 2012-01-19 17:28:22 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2012-01-19 17:28:22 -0800
commitdde686e2bdf7ea679dae4fd4edbf94c71802dc28 (patch)
tree6a2ea7e5a7d5a010adb25bf920dc41dee8243da8 /services/input/EventHub.cpp
parenta1e873975704814416ee4d5023bf0740ec195ec0 (diff)
parent08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff (diff)
am 08d3c6e5: am 4f367f33: Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)"
* commit '08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff': Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)
Diffstat (limited to 'services/input/EventHub.cpp')
-rw-r--r--services/input/EventHub.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp
index f179208e495d..85ff9644dff4 100644
--- a/services/input/EventHub.cpp
+++ b/services/input/EventHub.cpp
@@ -551,7 +551,7 @@ size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSiz
if (mNeedToReopenDevices) {
mNeedToReopenDevices = false;
- LOGI("Reopening all input devices due to a configuration change.");
+ ALOGI("Reopening all input devices due to a configuration change.");
closeAllDevicesLocked();
mNeedToScanDevices = true;
@@ -865,7 +865,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
for (size_t i = 0; i < mExcludedDevices.size(); i++) {
const String8& item = mExcludedDevices.itemAt(i);
if (identifier.name == item) {
- LOGI("ignoring event id %s driver %s\n", devicePath, item.string());
+ ALOGI("ignoring event id %s driver %s\n", devicePath, item.string());
close(fd);
return -1;
}
@@ -919,16 +919,16 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
Device* device = new Device(fd, deviceId, String8(devicePath), identifier);
#if 0
- LOGI("add device %d: %s\n", deviceId, devicePath);
- LOGI(" bus: %04x\n"
+ ALOGI("add device %d: %s\n", deviceId, devicePath);
+ ALOGI(" bus: %04x\n"
" vendor %04x\n"
" product %04x\n"
" version %04x\n",
identifier.bus, identifier.vendor, identifier.product, identifier.version);
- LOGI(" name: \"%s\"\n", identifier.name.string());
- LOGI(" location: \"%s\"\n", identifier.location.string());
- LOGI(" unique id: \"%s\"\n", identifier.uniqueId.string());
- LOGI(" driver: v%d.%d.%d\n",
+ ALOGI(" name: \"%s\"\n", identifier.name.string());
+ ALOGI(" location: \"%s\"\n", identifier.location.string());
+ ALOGI(" unique id: \"%s\"\n", identifier.uniqueId.string());
+ ALOGI(" driver: v%d.%d.%d\n",
driverVersion >> 16, (driverVersion >> 8) & 0xff, driverVersion & 0xff);
#endif
@@ -1077,7 +1077,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
return -1;
}
- LOGI("New device: id=%d, fd=%d, path='%s', name='%s', classes=0x%x, "
+ ALOGI("New device: id=%d, fd=%d, path='%s', name='%s', classes=0x%x, "
"configuration='%s', keyLayout='%s', keyCharacterMap='%s', builtinKeyboard=%s",
deviceId, fd, devicePath, device->identifier.name.string(),
device->classes,
@@ -1170,7 +1170,7 @@ void EventHub::closeAllDevicesLocked() {
}
void EventHub::closeDeviceLocked(Device* device) {
- LOGI("Removed device: path=%s name=%s id=%d fd=%d classes=0x%x\n",
+ ALOGI("Removed device: path=%s name=%s id=%d fd=%d classes=0x%x\n",
device->path.string(), device->identifier.name.string(), device->id,
device->fd, device->classes);
@@ -1202,7 +1202,7 @@ void EventHub::closeDeviceLocked(Device* device) {
// Unlink the device from the opening devices list then delete it.
// We don't need to tell the client that the device was closed because
// it does not even know it was opened in the first place.
- LOGI("Device %s was immediately closed after opening.", device->path.string());
+ ALOGI("Device %s was immediately closed after opening.", device->path.string());
if (pred) {
pred->next = device->next;
} else {
@@ -1248,7 +1248,7 @@ status_t EventHub::readNotifyLocked() {
if(event->mask & IN_CREATE) {
openDeviceLocked(devname);
} else {
- LOGI("Removing device '%s' due to inotify event\n", devname);
+ ALOGI("Removing device '%s' due to inotify event\n", devname);
closeDeviceByPathLocked(devname);
}
}