diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-24 02:05:03 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-24 02:05:03 +0000 |
commit | a9f048ad93b85cbf221c89b4e4aacb25729c6685 (patch) | |
tree | 8e64ff18fbfec4786955062b51229d5c7fdda060 /src/mesh/mesh_path.c | |
parent | 8d774a0d462c9de472d58594663c1dd8a850164b (diff) | |
download | gnunet-a9f048ad93b85cbf221c89b4e4aacb25729c6685.tar.gz gnunet-a9f048ad93b85cbf221c89b4e4aacb25729c6685.zip |
-debug
Diffstat (limited to 'src/mesh/mesh_path.c')
-rw-r--r-- | src/mesh/mesh_path.c | 11 |
1 files changed, 11 insertions, 0 deletions
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) | |||
123 | GNUNET_free (p); | 123 | GNUNET_free (p); |
124 | return GNUNET_OK; | 124 | return GNUNET_OK; |
125 | } | 125 | } |
126 | |||
127 | void | ||
128 | path_debug (struct MeshPeerPath *p) | ||
129 | { | ||
130 | unsigned int i; | ||
131 | |||
132 | fprintf (stderr, "PATH:"); | ||
133 | for (i = 0; i < p->length; i++) | ||
134 | fprintf (stderr, " %s", GNUNET_i2s (GNUNET_PEER_resolve2 (p->peers[i]))); | ||
135 | fprintf (stderr, " END\n"); | ||
136 | } \ No newline at end of file | ||