From: Christian Grothoff Date: Fri, 21 May 2010 09:14:32 +0000 (+0000) Subject: dbg X-Git-Tag: initial-import-from-subversion-38251~21608 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac75c91f1f8443bb4543fa3df6e21d972e8359e8;p=oweals%2Fgnunet.git dbg --- diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index d160656bc..86f664ced 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -1071,9 +1071,11 @@ free_neighbour (struct Neighbour *n) { struct MessageEntry *m; +#if DEBUG_CORE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Destroying neighbour entry for peer `%4s'\n", GNUNET_i2s (&n->peer)); +#endif if (n->pitr != NULL) { GNUNET_PEERINFO_iterate_cancel (n->pitr); @@ -2089,9 +2091,11 @@ create_neighbour (const struct GNUNET_PeerIdentity *pid) struct Neighbour *n; struct GNUNET_TIME_Absolute now; +#if DEBUG_CORE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Creating neighbour entry for peer `%4s'\n", GNUNET_i2s (pid)); +#endif n = GNUNET_malloc (sizeof (struct Neighbour)); n->next = neighbours; neighbours = n;