From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 10 May 2021 15:06:11 +0000 (+0100) Subject: Add a warning in the log if sync is lost. X-Git-Tag: 1.1-dev~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=153eb5abf1e04cad93f92dc6e258f0072075c34c;p=thirdparty%2Fnqptp.git Add a warning in the log if sync is lost. --- diff --git a/nqptp-message-handlers.c b/nqptp-message-handlers.c index db68924..4aeb74c 100644 --- a/nqptp-message-handlers.c +++ b/nqptp-message-handlers.c @@ -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; }