mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Replace %m GNUism with strerror(errno)
Even musl libc supports %m today, as well as most syslog daemons, but that's no excuse to use this. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
3e8d63c29c
commit
fccba7cd4c
4 files changed
+5
-5
No files matched your search
+1
-1
@@ -141,7 +141,7 @@ static void rtc_restore(void *arg)
|
||||
else if (ENOENT == errno)
|
||||
logit(LOG_ERR, "RTC has no previously saved (valid) time.");
|
||||
else
|
||||
logit(LOG_ERR, "RTC error code %d: %m", errno);
|
||||
logit(LOG_ERR, "RTC error code %d: %s", errno, strerror(errno));
|
||||
rc = 2;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user