mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: fm-aidl: impl: strerror(errno)
This commit is contained in:
parent
13b24586ba
commit
2ed3af296a
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ constexpr const char *FM_DEV_PATH = "/dev/radio0";
|
||||||
int open_device(void) {
|
int open_device(void) {
|
||||||
int fd;
|
int fd;
|
||||||
if ((fd = open(FM_DEV_PATH, O_RDWR | O_CLOEXEC)) < 0) {
|
if ((fd = open(FM_DEV_PATH, O_RDWR | O_CLOEXEC)) < 0) {
|
||||||
LOG_E("Failed to open %s, %d (%s)", FM_DEV_PATH, errno, strerror(-errno));
|
LOG_E("Failed to open %s, %d (%s)", FM_DEV_PATH, errno, strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
LOG_D("Opened %s, fd %d", FM_DEV_PATH, fd);
|
LOG_D("Opened %s, fd %d", FM_DEV_PATH, fd);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue