plugins: rtc: Simplify failed restore from RTC warning

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-04-29 18:20:38 +02:00
parent 5e789401d4
commit c64188bfc5
+1 -1
View File
@@ -100,7 +100,7 @@ static void rtc_restore(void *arg)
if (ioctl(fd, RTC_RD_TIME, &tm) < 0) {
char msg[120];
snprintf(msg, sizeof(msg), "Failed restoring system clock from RTC, %s",
snprintf(msg, sizeof(msg), "Failed restoring system clock, %s",
EINVAL == errno ? "RTC time is too old" :
ENOENT == errno ? "RTC has no saved time" : "see log for details");
print_desc(NULL, msg);