]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
reference: shorten logchange log message
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 May 2020 10:29:51 +0000 (12:29 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 May 2020 13:37:38 +0000 (15:37 +0200)
Remove the "adjustment started" part from the "System clock wrong by *
seconds, adjustment started" log message as it might be confusing in
some cases. There may be a step instead of a slow adjustment, or there
may be no adjustment at all when running with the -x option.

reference.c

index c76e586b46aaf04b85c9d205918c46d92663e820..4602000a8a869c164f980b700dee91a2b3b3a8df 100644 (file)
@@ -489,8 +489,7 @@ maybe_log_offset(double offset, time_t now)
   abs_offset = fabs(offset);
 
   if (abs_offset > log_change_threshold) {
-    LOG(LOGS_WARN, "System clock wrong by %.6f seconds, adjustment started",
-        -offset);
+    LOG(LOGS_WARN, "System clock wrong by %.6f seconds", -offset);
   }
 
   if (do_mail_change &&