diff options
Diffstat (limited to 'src/tbf.c')
-rw-r--r-- | src/tbf.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -45,7 +45,7 @@ lru_link_node(struct tree *tree, struct node *node, struct node *ref) tree->head = node; } else { struct node *x; - //debug(0, ("LINK %p %p %p", node, ref, ref->next)); + node->prev = ref; node->next = ref->next; if ((x = ref->next)) @@ -665,7 +665,7 @@ tree_load_nodes(struct tree *tree, struct dump_header *hdr, uint32_t len; uint32_t flags; - debug(0,("Load record %lu/%lu %lu", i, hdr->count, incomplete)); + debug(3,("Load record %lu/%lu %lu", i, hdr->count, incomplete)); if (READREC(fp, len)) return -1; @@ -724,7 +724,7 @@ tree_load_nodes(struct tree *tree, struct dump_header *hdr, np->tokens = node.tokens; #if DEBUG np->keystr = node.keystr; - debug(0, ("loaded %p: %s %1x (%lu,%lu): time: %"PRIu64" us, tokens: %lu", + debug(3, ("loaded %p: %s %1x (%lu,%lu): time: %"PRIu64" us, tokens: %lu", np, np->keystr, flags, @@ -768,7 +768,6 @@ tree_load_nodes(struct tree *tree, struct dump_header *hdr, return 1; } tree->root = nodes[hdr->root]; -// debug(0,("Loaded nodes")); return 0; } @@ -792,7 +791,7 @@ tree_load(char const *filename) else { struct node **nodes; - debug(0,("elements: %"PRIu32", size: %"PRIu32", root: %"PRIu32, + debug(3,("elements: %"PRIu32", size: %"PRIu32", root: %"PRIu32, header.count, header.size, header.root)); tree = tree_create(); nodes = calloc(header.count, sizeof(*nodes)); |