fixed node id

This commit is contained in:
n07070 2020-05-04 16:09:55 +02:00
parent 5d47c43864
commit b85312bd97

View File

@ -75,7 +75,7 @@ void print_data(list * l){
print_debug(">> Peer ID | Seqno | Length | Message "); print_debug(">> Peer ID | Seqno | Length | Message ");
while(l != NULL){ while(l != NULL){
pub_data * message = l->data; 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++; nbr_msg++;
if (l->next == NULL) { if (l->next == NULL) {
break; break;
@ -97,7 +97,7 @@ void print_data_info(list * l){
print_info(">> Peer ID | Seqno | Length | Message "); print_info(">> Peer ID | Seqno | Length | Message ");
while(l != NULL){ while(l != NULL){
pub_data * message = l->data; 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++; nbr_msg++;
if (l->next == NULL) { if (l->next == NULL) {
break; break;