Improve links logging
This commit is contained in:
parent
5e326563b1
commit
12c057e651
1 changed files with 3 additions and 3 deletions
|
@ -141,7 +141,7 @@ void rr_pkt_register(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo,
|
||||||
|
|
||||||
// 0. Update remote links
|
// 0. Update remote links
|
||||||
if (ring_lt(rr->recv_id_late, bp->ip.ap.str.id) && !(rr->remote_links & 1 << link_num)) {
|
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
|
rr->remote_links |= 1 << link_num; // Make sure that the link is marked as working
|
||||||
show_link_availability (rr);
|
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) {
|
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 = bp->ip.ap.str.bitfield;
|
||||||
rr->my_links_ver = bp->ip.ap.str.id;
|
rr->my_links_ver = bp->ip.ap.str.id;
|
||||||
printf("Update my links\n");
|
printf("Update my links | ");
|
||||||
show_link_availability (rr);
|
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);
|
printf("Timer reached for packet %d\n", pkt->id);
|
||||||
|
|
||||||
// !BLACKLIST LINK
|
// !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;
|
rr->remote_links &= 0xff ^ 1 << pkt->link_num;
|
||||||
show_link_availability (rr);
|
show_link_availability (rr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue