mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: libfm_slsi-impl: Correct strerror usage
strerror(errno) is correct
This commit is contained in:
parent
4382d1d2cd
commit
d222619857
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ static bool FMThread = false;
|
||||||
constexpr const char *FM_DEV_PATH = "/dev/radio0";
|
constexpr const char *FM_DEV_PATH = "/dev/radio0";
|
||||||
|
|
||||||
#define LOG_IOCTL_ERR(cmd) \
|
#define LOG_IOCTL_ERR(cmd) \
|
||||||
LOG_E(std::string("Failed to call" cmd "ioctl(), %d (%s)"), errno, strerror(-errno))
|
LOG_E(std::string("Failed to call" cmd "ioctl(), %d (%s)"), errno, strerror(errno))
|
||||||
|
|
||||||
#define LOG_IOCTL_ERR_ON_COND_NORETURN(cmd, cond) \
|
#define LOG_IOCTL_ERR_ON_COND_NORETURN(cmd, cond) \
|
||||||
({ \
|
({ \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue