diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-09 16:41:44 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-09 16:48:33 +0200 |
commit | b269c219ded102477601fe77be53caf7d3d58f96 (patch) | |
tree | 194ae6f66222f11fbbfaa993b71d2e44a7c8d174 | |
parent | 0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb (diff) | |
download | vmod-tbf-b269c219ded102477601fe77be53caf7d3d58f96.tar.gz vmod-tbf-b269c219ded102477601fe77be53caf7d3d58f96.tar.bz2 |
Bugfixes
* src/tbf.c (new_node): Reset busy flag.
(log_node): Fix specifiers.
Increase tc->num.
-rw-r--r-- | src/tbf.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -649,2 +649,3 @@ new_node(struct node **nodes, struct dump_header *hdr, child = node_alloc(null_key, parent); + child->busy = 0; nodes[ord] = child; @@ -1021,3 +1022,3 @@ log_node(struct node *node, void *data) #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, @@ -1026,3 +1027,3 @@ log_node(struct node *node, void *data) #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, @@ -1030,2 +1031,3 @@ log_node(struct node *node, void *data) #endif + ++tc->num; } |