diff options
-rw-r--r-- | src/tree.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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); |