aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tbf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tbf.c b/src/tbf.c
index 7ac0ca3..4b1a77a 100644
--- a/src/tbf.c
+++ b/src/tbf.c
@@ -644,12 +644,13 @@ new_node(struct node **nodes, struct dump_header *hdr,
child = nodes[ord];
child->parent = parent;
} else {
static uint8_t null_key[SHA256_LEN];
child = node_alloc(null_key, parent);
+ child->busy = 0;
nodes[ord] = child;
}
return child;
}
int
@@ -1005,21 +1006,22 @@ static void
log_node(struct node *node, void *data)
{
struct traverse_closure *tc = data;
char kbuf[2*SHA256_LEN+1];
key_to_str(node->key, kbuf);
#ifdef DEBUG
- syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s: %s", tc->num, node,
+ syslog(tc->prio, "%"PRIu32": %p(%p,%p): %"PRIu32" %s: %s", tc->num, node,
node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord,
kbuf,
node->keystr);
#else
- syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s", tc->num, node,
+ syslog(tc->prio, "%"PRIu32": %p(%p,%p): %"PRIu32" %s", tc->num, node,
node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord,
kbuf);
#endif
+ ++tc->num;
}
VCL_VOID
vmod_log_tree(MOD_CTX ctx, VCL_INT prio)
{

Return to:

Send suggestions and report system problems to the System administrator.