rtc: cleanup in error messages

This commit is contained in:
Miroslav Lichvar
2014-08-18 11:03:15 +02:00
parent d0fb17d70c
commit c52e9085d1
2 changed files with 6 additions and 20 deletions

View File

@@ -456,9 +456,6 @@ read_coefs_from_file(void)
coefs_file_name);
}
fclose(in);
} else {
LOG(LOGS_WARN, LOGF_RtcLinux, "Could not open RTC file %s for reading",
coefs_file_name);
}
}
}
@@ -550,7 +547,8 @@ RTC_Linux_Initialise(void)
fd = open (CNF_GetRtcDevice(), O_RDWR);
if (fd < 0) {
LOG(LOGS_ERR, LOGF_RtcLinux, "Could not open %s, %s", CNF_GetRtcDevice(), strerror(errno));
LOG(LOGS_ERR, LOGF_RtcLinux, "Could not open RTC device %s : %s",
CNF_GetRtcDevice(), strerror(errno));
return 0;
}