diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 23:52:38 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 23:52:38 (EDT) |
commit | 833d64422ea7b25eace707ae982dbada01b38dac (patch) | |
tree | 0f7361b88ce1e7b2f20a1f5728dcc7658c8d02b2 /src | |
parent | 398bf9044f809be97df24e442a6efaa13729c878 (diff) | |
download | marquee-833d64422ea7b25eace707ae982dbada01b38dac.zip marquee-833d64422ea7b25eace707ae982dbada01b38dac.tar.gz marquee-833d64422ea7b25eace707ae982dbada01b38dac.tar.bz2 |
MqTree: Improve tree traversal debugging output
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -67,7 +67,7 @@ print_node(MqTree *node) static void print_head(const gchar *head, MqTree *node) { - g_print("%s, at 0x%" PRIxPTR "\n", head, (uintptr_t) node); + g_print("%s, starting at 0x%" PRIxPTR "\n", head, (uintptr_t) node); } #else /* MQ_TREE_DEBUG */ @@ -245,7 +245,7 @@ void mq_tree_foreach(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), gpointer user_data) { - print_head("foreach", node); + print_head("Traversing full tree", node); foreach_down(node->root->first_child, cb, user_data); } @@ -273,7 +273,7 @@ void mq_tree_foreach_from(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), gpointer user_data) { - print_head("foreach from", node); + print_head("Traversing tree from position", node); if (foreach_down(node, cb, user_data) == MQ_TREE_CONTINUE) { foreach_up(node, cb, user_data); |