summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-25 12:47:29 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-25 12:47:29 (EDT)
commite9d9631a82c8da31df6b22175521581fcacf1462 (patch)
tree2ba4b4f23fb6a283bbe8f75e84e633031c9e7b5b /src
parentec249526ef406db942067c274415d17fb923c2cc (diff)
downloadmarquee-e9d9631a82c8da31df6b22175521581fcacf1462.zip
marquee-e9d9631a82c8da31df6b22175521581fcacf1462.tar.gz
marquee-e9d9631a82c8da31df6b22175521581fcacf1462.tar.bz2
MqTree: Split long node lines of tree debugging output
Diffstat (limited to 'src')
-rw-r--r--src/tree.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/tree.c b/src/tree.c
index 1363098..c940fae 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -44,14 +44,25 @@ debug_print_tree_recurse(MqTree *node, gsize indent)
for (i = 0; i < indent; ++i) {
g_print("\t");
}
- g_print("\t0x%0*" PRIxPTR " (size %d, position %d, "
- "parent 0x%0*" PRIxPTR ", "
- "siblings 0x%0*" PRIxPTR " and 0x%0*" PRIxPTR ", "
- "children 0x%0*" PRIxPTR " to 0x%0*" PRIxPTR ")\n",
- PRIWxPTR, (uintptr_t) node, node->size, node->position,
- PRIWxPTR, (uintptr_t) node->parent,
+ g_print("\t0x%0*" PRIxPTR " (size %d, position %d)\n",
+ PRIWxPTR, (uintptr_t) node, node->size, node->position);
+ for (i = 0; i < indent; ++i) {
+ g_print("\t");
+ }
+ g_print("\t\t\t(parent 0x%0*" PRIxPTR ")\n",
+ PRIWxPTR, (uintptr_t) node->parent);
+ for (i = 0; i < indent; ++i) {
+ g_print("\t");
+ }
+ g_print("\t\t\t(siblings 0x%0*" PRIxPTR " and "
+ "0x%0*" PRIxPTR ")\n",
PRIWxPTR, (uintptr_t) node->prev,
- PRIWxPTR, (uintptr_t) node->next,
+ PRIWxPTR, (uintptr_t) node->next);
+ for (i = 0; i < indent; ++i) {
+ g_print("\t");
+ }
+ g_print("\t\t\t(children 0x%0*" PRIxPTR " to "
+ "0x%0*" PRIxPTR ")\n",
PRIWxPTR, (uintptr_t) node->first_child,
PRIWxPTR, (uintptr_t) node->last_child);