universal7885: fm-aidl: impl: strerror(errno)

This commit is contained in:
roynatech2544 2022-12-10 00:01:04 +09:00
commit 2ed3af296a

View file

@ -44,7 +44,7 @@ constexpr const char *FM_DEV_PATH = "/dev/radio0";
int open_device(void) {
int fd;
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;
}
LOG_D("Opened %s, fd %d", FM_DEV_PATH, fd);