Merge "libpower: log errors to logcat" am: 12e55bef5b
am: 437c5a096e
Change-Id: I900b2e782e10bfed0d4011c54bd3a3e405b05fc4
This commit is contained in:
commit
d68e357f36
1 changed files with 1 additions and 1 deletions
2
power.c
2
power.c
|
@ -57,7 +57,7 @@ open_file_descriptors(const char * const paths[])
|
||||||
int fd = open(paths[i], O_RDWR | O_CLOEXEC);
|
int fd = open(paths[i], O_RDWR | O_CLOEXEC);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
g_error = -errno;
|
g_error = -errno;
|
||||||
fprintf(stderr, "fatal error opening \"%s\": %s\n", paths[i],
|
ALOGE("fatal error opening \"%s\": %s\n", paths[i],
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue