X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fsptps.c;h=780014008a94a6983ab41618f746b7306ce51d5f;hb=ec1f7e525d046bcaeb8e7040b8cec9a34a568371;hp=2a298ffa70ace8b9431ae38d729d7f536df33e3b;hpb=94ec8d34db0ddef14b5446975663e5ff37e27b45;p=meshlink diff --git a/src/sptps.c b/src/sptps.c index 2a298ffa..78001400 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -436,7 +436,7 @@ static bool sptps_receive_data_datagram(sptps_t *s, const char *data, size_t len } else if (seqno < s->inseqno) { // If the sequence number is farther in the past than the bitmap goes, or if the packet was already received, drop it. if((s->inseqno >= s->replaywin * 8 && seqno < s->inseqno - s->replaywin * 8) || !(s->late[(seqno / 8) % s->replaywin] & (1 << seqno % 8))) { - fprintf(stderr, "Received late or replayed packet, seqno %d, last received %d", seqno, s->inseqno); + fprintf(stderr, "Received late or replayed packet, seqno %d, last received %d\n", seqno, s->inseqno); return false; } } else {