diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-25 11:05:03 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-25 11:05:03 (EDT) |
commit | 310c6504735e940f08b2e8a0bfceb47f6646b820 (patch) | |
tree | 5c8fd46e062d9b4eb970be69906d5f116930d1f9 | |
parent | 1a87e555a31c0f1ec5504fddc17f65819e8e7a36 (diff) | |
download | marquee-310c6504735e940f08b2e8a0bfceb47f6646b820.zip marquee-310c6504735e940f08b2e8a0bfceb47f6646b820.tar.gz marquee-310c6504735e940f08b2e8a0bfceb47f6646b820.tar.bz2 |
MqTree: Add links to new tree debugging output
-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); |