From c64188bfc51da30c81239cf376f9054ff38ea741 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 29 Apr 2019 18:20:38 +0200 Subject: [PATCH] plugins: rtc: Simplify failed restore from RTC warning Signed-off-by: Joachim Nilsson --- plugins/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rtc.c b/plugins/rtc.c index b0d18c6b..d8af8785 100644 --- a/plugins/rtc.c +++ b/plugins/rtc.c @@ -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);