aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-10-24 02:05:03 +0000
committerBart Polot <bart@net.in.tum.de>2013-10-24 02:05:03 +0000
commita9f048ad93b85cbf221c89b4e4aacb25729c6685 (patch)
tree8e64ff18fbfec4786955062b51229d5c7fdda060 /src/mesh
parent8d774a0d462c9de472d58594663c1dd8a850164b (diff)
downloadgnunet-a9f048ad93b85cbf221c89b4e4aacb25729c6685.tar.gz
gnunet-a9f048ad93b85cbf221c89b4e4aacb25729c6685.zip
-debug
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_path.c11
-rw-r--r--src/mesh/mesh_path.h2
2 files changed, 13 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
127void
128path_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
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);
123int 123int
124path_destroy (struct MeshPeerPath *p); 124path_destroy (struct MeshPeerPath *p);
125 125
126void
127path_debug (struct MeshPeerPath *p);
126 128
127#if 0 /* keep Emacsens' auto-indent happy */ 129#if 0 /* keep Emacsens' auto-indent happy */
128{ 130{