summaryrefslogtreecommitdiffstats
path: root/liblight
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 /liblight
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 'liblight')
-rw-r--r--liblight/lights.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/liblight/lights.c b/liblight/lights.c
index 52bce3f..ff8b28e 100644
--- a/liblight/lights.c
+++ b/liblight/lights.c
@@ -65,7 +65,7 @@ static int write_int(char const *path, int value)
return amt == -1 ? -errno : 0;
} else {
if (already_warned == 0) {
- LOGE("write_int failed to open %s\n", path);
+ ALOGE("write_int failed to open %s\n", path);
already_warned = 1;
}
return -errno;
@@ -115,15 +115,15 @@ static int write_leds(struct an30259a_pr_control *led)
if (fd >= 0) {
err = ioctl(fd, AN30259A_PR_SET_IMAX, &imax);
if (err)
- LOGE("failed to set imax");
+ ALOGE("failed to set imax");
err = ioctl(fd, AN30259A_PR_SET_LED, led);
if (err < 0)
- LOGE("failed to set leds!");
+ ALOGE("failed to set leds!");
close(fd);
} else {
- LOGE("failed to open %s!", LED_FILE);
+ ALOGE("failed to open %s!", LED_FILE);
err = -errno;
}