mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 12:45:07 -05:00
rtc: log error message when driver initialisation fails
This commit is contained in:
committed by
Miroslav Lichvar
parent
cd98516cae
commit
fb7475bf59
2
rtc.c
2
rtc.c
@@ -148,6 +148,8 @@ RTC_Initialise(int initial_set)
|
|||||||
if (driver.init) {
|
if (driver.init) {
|
||||||
if ((driver.init)()) {
|
if ((driver.init)()) {
|
||||||
driver_initialised = 1;
|
driver_initialised = 1;
|
||||||
|
} else {
|
||||||
|
LOG(LOGS_ERR, "RTC driver could not be initialised");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG(LOGS_ERR, "RTC not supported on this operating system");
|
LOG(LOGS_ERR, "RTC not supported on this operating system");
|
||||||
|
|||||||
Reference in New Issue
Block a user