From 12c057e65124bdcecdf09f10302ac814ccc7dea1 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 28 Mar 2019 15:29:34 +0100 Subject: [PATCH] Improve links logging --- src/algo_rr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algo_rr.c b/src/algo_rr.c index 324b84a..fad6a42 100644 --- a/src/algo_rr.c +++ b/src/algo_rr.c @@ -141,7 +141,7 @@ void rr_pkt_register(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo, // 0. Update remote links if (ring_lt(rr->recv_id_late, bp->ip.ap.str.id) && !(rr->remote_links & 1 << link_num)) { - printf("Activate link=%d\n", link_num); + printf("Activate link=%d | ", link_num); rr->remote_links |= 1 << link_num; // Make sure that the link is marked as working show_link_availability (rr); } @@ -150,7 +150,7 @@ void rr_pkt_register(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo, if (bp->ip.ap.str.id > rr->my_links_ver && bp->ip.ap.str.bitfield != rr->my_links) { rr->my_links = bp->ip.ap.str.bitfield; rr->my_links_ver = bp->ip.ap.str.id; - printf("Update my links\n"); + printf("Update my links | "); show_link_availability (rr); } @@ -448,7 +448,7 @@ int rr_on_timer(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) { printf("Timer reached for packet %d\n", pkt->id); // !BLACKLIST LINK - printf("Blacklist link=%d\n", pkt->link_num); + printf("Blacklist link=%d | ", pkt->link_num); rr->remote_links &= 0xff ^ 1 << pkt->link_num; show_link_availability (rr);