From: Michael Witten Date: Tue, 15 Dec 2020 09:44:19 +0000 (+0100) Subject: rtc: log error message when driver initialisation fails X-Git-Tag: 4.1-pre1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb7475bf5902e823100a443bd242cad242a5c6c0;p=thirdparty%2Fchrony.git rtc: log error message when driver initialisation fails --- diff --git a/rtc.c b/rtc.c index fa831735..d9465416 100644 --- 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");