From aa50ef6c2964203747c45ba60b2bd7a816cb0267 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 11 Oct 2013 16:06:30 +0000 Subject: [PATCH] - debug --- src/mesh/gnunet-service-mesh-enc.c | 4 ++-- src/mesh/gnunet-service-mesh_connection.c | 1 + src/mesh/gnunet-service-mesh_dht.c | 2 +- src/mesh/gnunet-service-mesh_local.c | 1 + src/mesh/gnunet-service-mesh_peer.c | 1 + src/mesh/gnunet-service-mesh_tunnel.c | 1 + 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c index 22c70308d..47ac18d83 100644 --- a/src/mesh/gnunet-service-mesh-enc.c +++ b/src/mesh/gnunet-service-mesh-enc.c @@ -197,11 +197,11 @@ main (int argc, char *const *argv) int ret; int r; - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "main()\n"); + fprintf (stderr, "main()\n"); r = GNUNET_SERVICE_run (argc, argv, "mesh", GNUNET_SERVICE_OPTION_NONE, &run, NULL); ret = (GNUNET_OK == r) ? 0 : 1; - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "main() END\n"); + fprintf (stderr, "main() END\n"); return ret; } diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index fbc021154..c3aee6f38 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -1713,6 +1713,7 @@ GMC_send_ack (struct MeshConnection *c, struct MeshChannel *ch, int fwd) void GMC_init (const struct GNUNET_CONFIGURATION_Handle *c) { + LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (c, "MESH", "MAX_MSGS_QUEUE", &max_msgs_queue)) diff --git a/src/mesh/gnunet-service-mesh_dht.c b/src/mesh/gnunet-service-mesh_dht.c index baf9d9375..b8b2f4cd3 100644 --- a/src/mesh/gnunet-service-mesh_dht.c +++ b/src/mesh/gnunet-service-mesh_dht.c @@ -275,7 +275,7 @@ announce_id (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) void GMD_init (const struct GNUNET_CONFIGURATION_Handle *c) { - + LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (c, "MESH", "DHT_REPLICATION_LEVEL", &dht_replication_level)) diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c index 0fe98f448..b3c560034 100644 --- a/src/mesh/gnunet-service-mesh_local.c +++ b/src/mesh/gnunet-service-mesh_local.c @@ -725,6 +725,7 @@ static struct GNUNET_SERVER_MessageHandler client_handlers[] = { void GML_init (struct GNUNET_SERVER_Handle *handle) { + LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); server_handle = handle; GNUNET_SERVER_suspend (server_handle); ports = GNUNET_CONTAINER_multihashmap32_create (32); diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c index 75c34c55a..0127615c1 100644 --- a/src/mesh/gnunet-service-mesh_peer.c +++ b/src/mesh/gnunet-service-mesh_peer.c @@ -1164,6 +1164,7 @@ GMP_queue_unlock (struct MeshPeer *peer, struct MeshConnection *c) void GMP_init (const struct GNUNET_CONFIGURATION_Handle *c) { + LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); peers = GNUNET_CONTAINER_multipeermap_create (128, GNUNET_NO); if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (c, "MESH", "MAX_PEERS", diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 01f581c27..a4a54b77c 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -620,6 +620,7 @@ void GMT_init (const struct GNUNET_CONFIGURATION_Handle *c, const struct GNUNET_CRYPTO_EddsaPrivateKey *key) { + LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (c, "MESH", "DEFAULT_TTL", &default_ttl)) -- 2.25.1