mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
plugins: rtc: Simplify failed restore from RTC warning
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
5e789401d4
commit
c64188bfc5
1 file changed
+1
-1
+1
-1
@@ -100,7 +100,7 @@ static void rtc_restore(void *arg)
|
|||||||
if (ioctl(fd, RTC_RD_TIME, &tm) < 0) {
|
if (ioctl(fd, RTC_RD_TIME, &tm) < 0) {
|
||||||
char msg[120];
|
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" :
|
EINVAL == errno ? "RTC time is too old" :
|
||||||
ENOENT == errno ? "RTC has no saved time" : "see log for details");
|
ENOENT == errno ? "RTC has no saved time" : "see log for details");
|
||||||
print_desc(NULL, msg);
|
print_desc(NULL, msg);
|
||||||
|
|||||||
Reference in new issue
Block a user