]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
rtc: log error message when driver initialisation fails
authorMichael Witten <mfwitten@gmail.com>
Tue, 15 Dec 2020 09:44:19 +0000 (10:44 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 15 Dec 2020 09:49:07 +0000 (10:49 +0100)
rtc.c

diff --git a/rtc.c b/rtc.c
index fa83173563b203770e9be773c06cfb2d4ac56f91..d9465416088b24b21adb0a5e858099437a761052 100644 (file)
--- a/rtc.c
+++ b/rtc.c
@@ -148,6 +148,8 @@ RTC_Initialise(int initial_set)
     if (driver.init) {
       if ((driver.init)()) {
         driver_initialised = 1;
+      } else {
+        LOG(LOGS_ERR, "RTC driver could not be initialised");
       }
     } else {
       LOG(LOGS_ERR, "RTC not supported on this operating system");