From a9f048ad93b85cbf221c89b4e4aacb25729c6685 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 24 Oct 2013 02:05:03 +0000 Subject: -debug --- src/mesh/mesh_path.c | 11 +++++++++++ src/mesh/mesh_path.h | 2 ++ 2 files changed, 13 insertions(+) (limited to 'src/mesh') diff --git a/src/mesh/mesh_path.c b/src/mesh/mesh_path.c index 536fb0da6..52f0c948a 100644 --- a/src/mesh/mesh_path.c +++ b/src/mesh/mesh_path.c @@ -123,3 +123,14 @@ path_destroy (struct MeshPeerPath *p) GNUNET_free (p); return GNUNET_OK; } + +void +path_debug (struct MeshPeerPath *p) +{ + unsigned int i; + + fprintf (stderr, "PATH:"); + for (i = 0; i < p->length; i++) + fprintf (stderr, " %s", GNUNET_i2s (GNUNET_PEER_resolve2 (p->peers[i]))); + fprintf (stderr, " END\n"); +} \ No newline at end of file diff --git a/src/mesh/mesh_path.h b/src/mesh/mesh_path.h index 48cf048d4..a3d2457d2 100644 --- a/src/mesh/mesh_path.h +++ b/src/mesh/mesh_path.h @@ -123,6 +123,8 @@ path_get_length (struct MeshPeerPath *path); int path_destroy (struct MeshPeerPath *p); +void +path_debug (struct MeshPeerPath *p); #if 0 /* keep Emacsens' auto-indent happy */ { -- cgit v1.2.3