From b85312bd9759004d716039a28c72ab40f7868d7b Mon Sep 17 00:00:00 2001 From: n07070 Date: Mon, 4 May 2020 16:09:55 +0200 Subject: [PATCH] fixed node id --- src/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index e205e30..c596646 100644 --- a/src/debug.c +++ b/src/debug.c @@ -75,7 +75,7 @@ void print_data(list * l){ print_debug(">> Peer ID | Seqno | Length | Message "); while(l != NULL){ pub_data * message = l->data; - printf("\x1b[31m[DEBUG]\x1b[0m >> %li | %i | %i | “%s” \n", message->id, message->seqno, message->length, message->data); + printf("\x1b[31m[DEBUG]\x1b[0m >> %lu | %i | %i | “%s” \n", message->id, message->seqno, message->length, message->data); nbr_msg++; if (l->next == NULL) { break; @@ -97,7 +97,7 @@ void print_data_info(list * l){ print_info(">> Peer ID | Seqno | Length | Message "); while(l != NULL){ pub_data * message = l->data; - printf("\x1b[1m\x1b[36m[大字报]\x1b[0m >> %li | %i | %i | “%s” \n", message->id, message->seqno, message->length, message->data); + printf("\x1b[1m\x1b[36m[大字报]\x1b[0m >> %lu | %i | %i | “%s” \n", message->id, message->seqno, message->length, message->data); nbr_msg++; if (l->next == NULL) { break;