tempcomp: print warning message on error
This commit is contained in:
parent
0a56c0e8c1
commit
7a512ad9c3
2 changed files with 8 additions and 0 deletions
|
@ -85,6 +85,7 @@ typedef enum {
|
||||||
LOGF_SysSolaris,
|
LOGF_SysSolaris,
|
||||||
LOGF_SysSunOS,
|
LOGF_SysSunOS,
|
||||||
LOGF_SysWinnt,
|
LOGF_SysWinnt,
|
||||||
|
LOGF_TempComp,
|
||||||
LOGF_RtcLinux,
|
LOGF_RtcLinux,
|
||||||
LOGF_Refclock
|
LOGF_Refclock
|
||||||
} LOG_Facility;
|
} LOG_Facility;
|
||||||
|
|
|
@ -67,7 +67,14 @@ read_timeout(void *arg)
|
||||||
LOG_FileWrite(logfileid, "%s %11.4e %11.4e",
|
LOG_FileWrite(logfileid, "%s %11.4e %11.4e",
|
||||||
UTI_TimeToLogForm(now.tv_sec), temp, comp);
|
UTI_TimeToLogForm(now.tv_sec), temp, comp);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
LOG(LOGS_WARN, LOGF_TempComp,
|
||||||
|
"Temperature compensation of %.3f ppm exceeds sanity limit of %.1f",
|
||||||
|
comp, MAX_COMP);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
LOG(LOGS_WARN, LOGF_TempComp, "Could not read temperature from %s",
|
||||||
|
filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f)
|
if (f)
|
||||||
|
|
Loading…
Reference in a new issue