mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07: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
-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