chrony/chrony-tai.patch

19 lines
759 B
Diff

--- reference.c.orig
+++ reference.c
@@ -562,10 +562,13 @@ is_offset_ok(double offset)
return 1;
}
+ LOG(LOGS_WARN, "HERE: %.010f ", fabs(offset));
+ LOG(LOGS_WARN, "HERE: %.010f ", max_offset);
+ LOG(LOGS_WARN, "HERE: ====================");
if (fabs(offset) > max_offset) {
LOG(LOGS_WARN,
- "Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
- -offset, max_offset, !max_offset_ignore ? "exiting" : "ignored");
+ "Adjustment of %lu seconds exceeds the allowed maximum of %lu seconds (%s) ",
+ (unsigned long)-offset, (unsigned long)max_offset, !max_offset_ignore ? "exiting" : "ignored");
if (!max_offset_ignore)
end_ref_mode(0);
else if (max_offset_ignore > 0)