From 310c6504735e940f08b2e8a0bfceb47f6646b820 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 25 Oct 2017 11:05:03 -0400 Subject: MqTree: Add links to new tree debugging output --- (limited to 'src') diff --git a/src/tree.c b/src/tree.c index 6d838cd..ec5e72a 100644 --- a/src/tree.c +++ b/src/tree.c @@ -40,8 +40,15 @@ debug_print_tree_recurse(MqTree *node, gsize indent) for (i = 0; i < indent; ++i) { g_print("\t"); } - g_print("\t0x%" PRIxPTR " (size %d, position %d)\n", - (uintptr_t) node, node->size, node->position); + g_print("\t0x%" PRIxPTR " (size %d, position %d, " + "parent 0x%" PRIxPTR ", " + "siblings 0x%" PRIxPTR " and 0x%" PRIxPTR ", " + "children 0x%" PRIxPTR " to 0x%" PRIxPTR ")\n", + (uintptr_t) node, node->size, node->position, + (uintptr_t) node->parent, + (uintptr_t) node->prev, (uintptr_t) node->next, + (uintptr_t) node->first_child, + (uintptr_t) node->last_child); if (node->first_child) { debug_print_tree_recurse(node->first_child, indent + 1); -- cgit v0.9.1