summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-08 10:19:03 +0000
committerSteve Block <steveblock@google.com>2012-01-08 11:03:20 +0000
commitb1fdc4fad038552a072019954c052b6374fa5936 (patch)
tree7793383ff2b17f7dea7f12c8ad6f12a3f357f550 /libsensors
parentfef6558d68e8f62401d926d187621a495b15e1ec (diff)
downloaddevice_samsung_tuna-b1fdc4fad038552a072019954c052b6374fa5936.zip
device_samsung_tuna-b1fdc4fad038552a072019954c052b6374fa5936.tar.gz
device_samsung_tuna-b1fdc4fad038552a072019954c052b6374fa5936.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')
-rw-r--r--libsensors/SamsungSensorBase.cpp4
-rw-r--r--libsensors/sensors.cpp10
2 files changed, 7 insertions, 7 deletions
diff --git a/libsensors/SamsungSensorBase.cpp b/libsensors/SamsungSensorBase.cpp
index 0ec4915..fe3f14e 100644
--- a/libsensors/SamsungSensorBase.cpp
+++ b/libsensors/SamsungSensorBase.cpp
@@ -70,13 +70,13 @@ SamsungSensorBase::SamsungSensorBase(const char *dev_name,
return;
mInputSysfsEnable = makeSysfsName(input_name, "enable");
if (!mInputSysfsEnable) {
- LOGE("%s: unable to allocate mem for %s:enable", __func__,
+ ALOGE("%s: unable to allocate mem for %s:enable", __func__,
data_name);
return;
}
mInputSysfsPollDelay = makeSysfsName(input_name, "poll_delay");
if (!mInputSysfsPollDelay) {
- LOGE("%s: unable to allocate mem for %s:poll_delay", __func__,
+ ALOGE("%s: unable to allocate mem for %s:poll_delay", __func__,
data_name);
return;
}
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) {