diff options
author | Steve Block <steveblock@google.com> | 2012-01-08 10:19:03 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2012-01-08 11:03:20 +0000 |
commit | 87efd3f274564ba53f4956f99766262acd04db30 (patch) | |
tree | af1f4d338daf8e66ab6368029d55bdfd947bb1f3 /libsensors/sensors.cpp | |
parent | 0579122fe9723e950e06a8986f36395f0dd121c6 (diff) | |
download | device_samsung_tuna-87efd3f274564ba53f4956f99766262acd04db30.zip device_samsung_tuna-87efd3f274564ba53f4956f99766262acd04db30.tar.gz device_samsung_tuna-87efd3f274564ba53f4956f99766262acd04db30.tar.bz2 |
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: I2e1c43800c19b718cc7ee94ec299c62bc14873b4
Diffstat (limited to 'libsensors/sensors.cpp')
-rw-r--r-- | libsensors/sensors.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libsensors/sensors.cpp b/libsensors/sensors.cpp index 85e3bc1..2a33731 100644 --- a/libsensors/sensors.cpp +++ b/libsensors/sensors.cpp @@ -215,7 +215,7 @@ sensors_poll_context_t::sensors_poll_context_t() int wakeFds[2]; int result = pipe(wakeFds); - LOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno)); + ALOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno)); fcntl(wakeFds[0], F_SETFL, O_NONBLOCK); fcntl(wakeFds[1], F_SETFL, O_NONBLOCK); mWritePipeFd = wakeFds[1]; @@ -249,7 +249,7 @@ int sensors_poll_context_t::activate(int handle, int enabled) if (!err) { const char wakeMessage(WAKE_MESSAGE); int result = write(mWritePipeFd, &wakeMessage, 1); - LOGE_IF(result<0, "error sending wake message (%s)", strerror(errno)); + ALOGE_IF(result<0, "error sending wake message (%s)", strerror(errno)); } return err; } @@ -306,14 +306,14 @@ int sensors_poll_context_t::pollEvents(sensors_event_t* data, int count) n = poll(mPollFds, numFds, nbEvents ? 0 : polltime); } while (n < 0 && errno == EINTR); if (n<0) { - LOGE("poll() failed (%s)", strerror(errno)); + ALOGE("poll() failed (%s)", strerror(errno)); return -errno; } if (mPollFds[wake].revents & POLLIN) { char msg; int result = read(mPollFds[wake].fd, &msg, 1); - LOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno)); - LOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg)); + ALOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno)); + ALOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg)); mPollFds[wake].revents = 0; } if(mPollFds[mpl_power].revents & POLLIN) { |