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;