diff options
Diffstat (limited to 'liblight')
-rw-r--r-- | liblight/lights.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/liblight/lights.c b/liblight/lights.c index 8c675b2..ff8b28e 100644 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -54,7 +54,7 @@ static int write_int(char const *path, int value) already_warned = 0; - LOGV("write_int: path %s, value %d", path, value); + ALOGV("write_int: path %s, value %d", path, value); fd = open(path, O_RDWR); if (fd >= 0) { @@ -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; @@ -95,7 +95,7 @@ static int set_light_backlight(struct light_device_t *dev, static int close_lights(struct light_device_t *dev) { - LOGV("close_light is called"); + ALOGV("close_light is called"); if (dev) free(dev); @@ -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; } |