[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30400 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30400 - gnunet/src/mesh |
Date: |
Thu, 24 Oct 2013 04:05:03 +0200 |
Author: bartpolot
Date: 2013-10-24 04:05:03 +0200 (Thu, 24 Oct 2013)
New Revision: 30400
Modified:
gnunet/src/mesh/mesh_path.c
gnunet/src/mesh/mesh_path.h
Log:
-debug
Modified: gnunet/src/mesh/mesh_path.c
===================================================================
--- gnunet/src/mesh/mesh_path.c 2013-10-24 02:04:48 UTC (rev 30399)
+++ gnunet/src/mesh/mesh_path.c 2013-10-24 02:05:03 UTC (rev 30400)
@@ -123,3 +123,14 @@
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
Modified: gnunet/src/mesh/mesh_path.h
===================================================================
--- gnunet/src/mesh/mesh_path.h 2013-10-24 02:04:48 UTC (rev 30399)
+++ gnunet/src/mesh/mesh_path.h 2013-10-24 02:05:03 UTC (rev 30400)
@@ -123,6 +123,8 @@
int
path_destroy (struct MeshPeerPath *p);
+void
+path_debug (struct MeshPeerPath *p);
#if 0 /* keep Emacsens' auto-indent happy */
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30400 - gnunet/src/mesh,
gnunet <=