0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Use %N for printing net addresses

This commit is contained in:
Igor Putovny 2024-03-05 12:31:20 +01:00
parent 89c55c241e
commit 2247e45694

View File

@ -616,13 +616,13 @@ print_prefixes_ip4_helper(const struct trie_node *node, struct net_addr_ip4 *add
if (is_leaf(node))
{
log("%I4/%d\t-> %p", addr->prefix, addr->pxlen, node->bucket);
log("%N\t-> %p", addr, node->bucket);
return;
}
if (node->bucket != NULL)
{
log("%I4/%d\t-> %p", addr->prefix, addr->pxlen, node->bucket);
log("%N\t-> %p", addr, node->bucket);
}
if (node->child[0])
@ -648,13 +648,13 @@ print_prefixes_ip6_helper(const struct trie_node *node, struct net_addr_ip6 *add
if (is_leaf(node))
{
log("%I6/%d\t-> %p", addr->prefix, addr->pxlen, node->bucket);
log("%N\t-> %p", addr, node->bucket);
return;
}
if (node->bucket != NULL)
{
log("%I6/%d\n-> %p", addr->prefix, addr->pxlen, node->bucket);
log("%N\t-> %p", addr, node->bucket);
}
if (node->child[0])
@ -1393,7 +1393,7 @@ aggregator_rt_notify(struct proto *P, struct channel *src_ch, net *net, rte *new
union net_addr_union *uptr = (net_addr_union *)rte->net->n.addr;
trie_insert_prefix(uptr, p->root, bucket, p->trie_slab);
const struct net_addr_ip4 * const ip4 = &uptr->ip4;
log("INSERT %I4/%d", ip4->prefix.addr, ip4->pxlen);
log("INSERT %N", ip4);
}
}
HASH_WALK_END;