From 7bd369341b3d7a6a8c299a4bd9ed4c7e7dc916fb Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 5 Feb 2026 04:05:29 +0300 Subject: [PATCH] Remove error prints from ETCP timestamp checks --- src/etcp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/etcp.c b/src/etcp.c index 893f3252..f133affc 100644 --- a/src/etcp.c +++ b/src/etcp.c @@ -445,18 +445,14 @@ static void ack_timeout_check(void* arg) { while (current = etcp->input_wait_ack->head) { struct INFLIGHT_PACKET* pkt = (struct INFLIGHT_PACKET*)current; - // Check for invalid timestamp + // Check for invalid timestamp - silent fix, no error output if (pkt->last_timestamp == 0) { - DEBUG_ERROR(DEBUG_CATEGORY_ETCP, "[%s] ack_timeout_check: packet seq=%u has last_timestamp=0, not sent yet!", - etcp->log_name, pkt->seq); // Schedule timer to check again later etcp->retrans_timer = uasync_set_timeout(etcp->instance->ua, timeout, etcp, ack_timeout_check); return; } if (pkt->last_timestamp > now) { - DEBUG_ERROR(DEBUG_CATEGORY_ETCP, "[%s] ack_timeout_check: packet seq=%u has last_timestamp=%llu > now=%llu, clock went backwards!", - etcp->log_name, pkt->seq, (unsigned long long)pkt->last_timestamp, (unsigned long long)now); // Fix the timestamp to prevent overflow pkt->last_timestamp = now; }