Merge "libpower: log errors to logcat"

am: 12e55bef5b

Change-Id: I5ce53f069fecd395b1bbf6633f56405626d46112
This commit is contained in:
Tri Vo 2018-05-17 15:24:02 -07:00 committed by android-build-merger
commit 437c5a096e

View file

@ -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;
}