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:
Joachim Wiberg
2021-02-07 13:21:55 +01:00
parent 3e8d63c29c
commit fccba7cd4c
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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;
}