more LOG macros
authorChristian Grothoff <christian@grothoff.org>
Sat, 21 Jan 2017 18:52:32 +0000 (19:52 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 21 Jan 2017 18:52:32 +0000 (19:52 +0100)
src/cadet/gnunet-service-cadet-new_core.c
src/cadet/gnunet-service-cadet-new_dht.c
src/cadet/gnunet-service-cadet-new_hello.c
src/cadet/gnunet-service-cadet-new_paths.c
src/cadet/gnunet-service-cadet-new_peer.c

index 39a6a9296b7fc61f00fd118124d4a40fd0d69cf4..d857a577ef61b6dcaa9c42c8a9b081c035c191fd 100644 (file)
 #include "gnunet_core_service.h"
 #include "cadet_protocol.h"
 
+
+#define LOG(level, ...) GNUNET_log_from(level,"cadet-cor",__VA_ARGS__)
+
+
 /**
  * Number of messages we are willing to buffer per route.
  */
index 3cf3f0301bad23a84f9c9c7b51de9cf4b37a143d..9815536019f3ddbbd6c6bf4c82b78fbbcfb2892d 100644 (file)
@@ -271,9 +271,6 @@ GCD_search (const struct GNUNET_PeerIdentity *peer_id)
   struct GNUNET_HashCode phash;
   struct GCD_search_handle *h;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG,
-       "Starting DHT GET for peer %s\n",
-       GNUNET_i2s (peer_id));
   GNUNET_STATISTICS_update (stats,
                             "# DHT search",
                             1,
@@ -296,6 +293,10 @@ GCD_search (const struct GNUNET_PeerIdentity *peer_id)
                                     0,     /* xquery bits */
                                     &dht_get_id_handler,
                                    h);
+  LOG (GNUNET_ERROR_TYPE_DEBUG,
+       "Starting DHT GET for peer %s (%p)\n",
+       GNUNET_i2s (peer_id),
+       h);
   return h;
 }
 
@@ -308,6 +309,9 @@ GCD_search (const struct GNUNET_PeerIdentity *peer_id)
 void
 GCD_search_stop (struct GCD_search_handle *h)
 {
+  LOG (GNUNET_ERROR_TYPE_DEBUG,
+       "Stopping DHT GET %p\n",
+       h);
   GNUNET_DHT_get_stop (h->dhtget);
   GNUNET_free (h);
 }
index d705cdd5f1d66e9d34bc1b2a79f7a8a5c6b1bb13..7c8ba3b25e08effdc181f3acd63a5c2a9f90b3a6 100644 (file)
@@ -52,7 +52,7 @@ static struct GNUNET_PEERINFO_Handle *peerinfo;
 /**
  * Iterator context.
  */
-static struct GNUNET_PEERINFO_NotifyContextnc;
+static struct GNUNET_PEERINFO_NotifyContext *nc;
 
 
 /**
index 3cfce337c692adc9f555f844522f174d2b5483cb..d945487d0351653d4a9e039d3af6d73c7f8e753c 100644 (file)
@@ -34,6 +34,9 @@
 #include "gnunet-service-cadet-new_paths.h"
 
 
+#define LOG(level, ...) GNUNET_log_from(level,"cadet-pat",__VA_ARGS__)
+
+
 /**
  * Information regarding a possible path to reach a peer.
  */
index 1cb79a02f51855cfc46c97057a9412fc6c54c569..a6485b0add19a6abc8755db0b67973c0875ea29d 100644 (file)
 #include "gnunet-service-cadet-new_paths.h"
 #include "gnunet-service-cadet-new_tunnels.h"
 
+
+#define LOG(level, ...) GNUNET_log_from(level,"cadet-per",__VA_ARGS__)
+
+
 /**
  * How long do we wait until tearing down an idle peer?
  */