summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-25 11:05:03 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-25 11:05:03 (EDT)
commit310c6504735e940f08b2e8a0bfceb47f6646b820 (patch)
tree5c8fd46e062d9b4eb970be69906d5f116930d1f9
parent1a87e555a31c0f1ec5504fddc17f65819e8e7a36 (diff)
downloadmarquee-310c6504735e940f08b2e8a0bfceb47f6646b820.zip
marquee-310c6504735e940f08b2e8a0bfceb47f6646b820.tar.gz
marquee-310c6504735e940f08b2e8a0bfceb47f6646b820.tar.bz2
MqTree: Add links to new tree debugging output
-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);