mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Remove debugging logs
This commit is contained in:
parent
24a450a817
commit
07d3f682ad
@ -73,19 +73,11 @@
|
||||
u32 _h = HASH_FN(v, id, id##_KEY((node))); \
|
||||
HASH_TYPE(v) *_n, **_nn = (v).data + _h; \
|
||||
\
|
||||
log(L_WARN "hash: %u", _h); \
|
||||
\
|
||||
while ((*_nn) && (*_nn != (node))) \
|
||||
{ \
|
||||
log(L_WARN "_nn: %p", *_nn); \
|
||||
_nn = &(id##_NEXT((*_nn))); \
|
||||
} \
|
||||
\
|
||||
if (_n = *_nn) \
|
||||
{ \
|
||||
log(L_WARN "Success %p", _n); \
|
||||
HASH_DO_REMOVE(v,id,_nn); \
|
||||
} \
|
||||
_n; \
|
||||
})
|
||||
|
||||
|
@ -224,9 +224,7 @@ first_pass_new(struct trie_node *node, slab *trie_slab)
|
||||
}
|
||||
|
||||
if (node->bucket == NULL)
|
||||
{
|
||||
node->bucket = node->parent->bucket;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
@ -241,16 +239,10 @@ first_pass_new(struct trie_node *node, slab *trie_slab)
|
||||
}
|
||||
|
||||
if (node->child[0])
|
||||
{
|
||||
first_pass_new(node->child[0], trie_slab);
|
||||
log("Entering first pass with node %p", node->child[0]);
|
||||
}
|
||||
|
||||
if (node->child[1])
|
||||
{
|
||||
first_pass_new(node->child[1], trie_slab);
|
||||
log("Entering first pass with node %p", node->child[1]);
|
||||
}
|
||||
|
||||
node->bucket = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user