aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_tunnel_tree.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesh/mesh_tunnel_tree.c b/src/mesh/mesh_tunnel_tree.c
index a7577e36f..445b7100d 100644
--- a/src/mesh/mesh_tunnel_tree.c
+++ b/src/mesh/mesh_tunnel_tree.c
@@ -344,25 +344,25 @@ tree_node_debug (struct MeshTunnelTreeNode *n, uint16_t level)
344 uint16_t i; 344 uint16_t i;
345 345
346 for (i = 0; i < level; i++) 346 for (i = 0; i < level; i++)
347 fprintf (stderr, " "); 347 FPRINTF (stderr, "%s", " ");
348 if (n->status == MESH_PEER_READY) 348 if (n->status == MESH_PEER_READY)
349 fprintf (stderr, "#"); 349 FPRINTF (stderr, "%s", "#");
350 if (n->status == MESH_PEER_SEARCHING) 350 if (n->status == MESH_PEER_SEARCHING)
351 fprintf (stderr, "+"); 351 FPRINTF (stderr, "%s", "+");
352 if (n->status == MESH_PEER_RELAY) 352 if (n->status == MESH_PEER_RELAY)
353 fprintf (stderr, "-"); 353 FPRINTF (stderr, "%s", "-");
354 if (n->status == MESH_PEER_RECONNECTING) 354 if (n->status == MESH_PEER_RECONNECTING)
355 fprintf (stderr, "*"); 355 FPRINTF (stderr, "%s", "*");
356 356
357 GNUNET_PEER_resolve (n->peer, &id); 357 GNUNET_PEER_resolve (n->peer, &id);
358 fprintf (stderr, "%s, [%u, %p] ", GNUNET_i2s (&id), n->peer, n); 358 FPRINTF (stderr, "%s, [%u, %p] ", GNUNET_i2s (&id), n->peer, n);
359 if (NULL != n->parent) 359 if (NULL != n->parent)
360 { 360 {
361 GNUNET_PEER_resolve (n->parent->peer, &id); 361 GNUNET_PEER_resolve (n->parent->peer, &id);
362 fprintf (stderr, "(-> %s [%u])\n", GNUNET_i2s (&id), n->parent->peer); 362 FPRINTF (stderr, "(-> %s [%u])\n", GNUNET_i2s (&id), n->parent->peer);
363 } 363 }
364 else 364 else
365 fprintf (stderr, "(root)\n"); 365 FPRINTF (stderr, "%s", "(root)\n");
366 for (c = n->children_head; NULL != c; c = c->next) 366 for (c = n->children_head; NULL != c; c = c->next)
367 tree_node_debug (c, level + 1); 367 tree_node_debug (c, level + 1);
368} 368}