]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
Add a warning in the log if sync is lost.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 10 May 2021 15:06:11 +0000 (16:06 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 10 May 2021 15:06:11 +0000 (16:06 +0100)
nqptp-message-handlers.c

index db68924a9612f5d2b1d12d2a5f0f6044e867c299..4aeb74c6e539b7bf2980237ad16770cd28366ec0 100644 (file)
@@ -273,7 +273,7 @@ void handle_follow_up(char *buf, __attribute__((unused)) ssize_t recv_len,
         offset = clock_private_info->previous_offset + jitter;
       }
     } else {
-      debug(1,"NQPTP lost sync with clock %" PRIx64 " at %s. Resynchronising.", clock_private_info->clock_id, clock_private_info->ip);
+      warn("Lost sync with clock %" PRIx64 " at %s. Resynchronising.", clock_private_info->clock_id, clock_private_info->ip);
       // leave the offset as it was coming in and take it as a sync time
       clock_private_info->last_sync_time = reception_time;
     }