summaryrefslogtreecommitdiffstats
path: root/src/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c11
1 files changed, 9 insertions, 2 deletions
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);