diff --git a/power.c b/power.c index 10ba380..fb60428 100644 --- a/power.c +++ b/power.c @@ -57,7 +57,7 @@ open_file_descriptors(const char * const paths[]) int fd = open(paths[i], O_RDWR | O_CLOEXEC); if (fd < 0) { g_error = -errno; - fprintf(stderr, "fatal error opening \"%s\": %s\n", paths[i], + ALOGE("fatal error opening \"%s\": %s\n", paths[i], strerror(errno)); return -1; }