summaryrefslogtreecommitdiffstats
path: root/PICA_node.c
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-15 21:15:54 +0400
committerAnton <anton@picapica>2019-03-15 21:15:54 +0400
commit3e980a0f6bc1ad8ac7240f2c38a6217b183941c3 (patch)
tree1327b9c33e5fd3a696279cc55db6863796dff73a /PICA_node.c
parent1c0f790240ad499a3705151b79bb2388d28fe18c (diff)
downloadpica-pica-3e980a0f6bc1ad8ac7240f2c38a6217b183941c3.tar.gz
pica-pica-3e980a0f6bc1ad8ac7240f2c38a6217b183941c3.zip
pica-node: print client tree as a debug level 2 message
Diffstat (limited to 'PICA_node.c')
-rw-r--r--PICA_node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PICA_node.c b/PICA_node.c
index 80c6367..cb41790 100644
--- a/PICA_node.c
+++ b/PICA_node.c
@@ -1945,11 +1945,11 @@ void client_tree_print(struct client *c)
char id_buf[2 * PICA_ID_SIZE];
if (!c)
{
- puts("NULL");
+ PICA_debug2("client_tree: NULL");
return;
}
- printf("%p: %s state: %u\nUP: %p\nnext_multi: %p\nLEFT: %p, RIGHT: %p\n\n",
+ PICA_debug2("client_tree %p: %s state: %u\nUP: %p\nnext_multi: %p\nLEFT: %p, RIGHT: %p\n\n",
(void*)c, PICA_id_to_base64(c->id, id_buf), c->state,
(void*)c->up, (void*)c->next_multi,
(void*)c->left, (void*)c->right);