diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-21 09:14:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-21 09:14:32 +0000 |
commit | ac75c91f1f8443bb4543fa3df6e21d972e8359e8 (patch) | |
tree | 197d54a6d609915087ee1e9105f6d5b19a62a09d /src/core/gnunet-service-core.c | |
parent | f6715272e999ddae4bbcb5cfa2c98ad511b3fbf8 (diff) | |
download | gnunet-ac75c91f1f8443bb4543fa3df6e21d972e8359e8.tar.gz gnunet-ac75c91f1f8443bb4543fa3df6e21d972e8359e8.zip |
dbg
Diffstat (limited to 'src/core/gnunet-service-core.c')
-rw-r--r-- | src/core/gnunet-service-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
1071 | { | 1071 | { |
1072 | struct MessageEntry *m; | 1072 | struct MessageEntry *m; |
1073 | 1073 | ||
1074 | #if DEBUG_CORE | ||
1074 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1075 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1075 | "Destroying neighbour entry for peer `%4s'\n", | 1076 | "Destroying neighbour entry for peer `%4s'\n", |
1076 | GNUNET_i2s (&n->peer)); | 1077 | GNUNET_i2s (&n->peer)); |
1078 | #endif | ||
1077 | if (n->pitr != NULL) | 1079 | if (n->pitr != NULL) |
1078 | { | 1080 | { |
1079 | GNUNET_PEERINFO_iterate_cancel (n->pitr); | 1081 | GNUNET_PEERINFO_iterate_cancel (n->pitr); |
@@ -2089,9 +2091,11 @@ create_neighbour (const struct GNUNET_PeerIdentity *pid) | |||
2089 | struct Neighbour *n; | 2091 | struct Neighbour *n; |
2090 | struct GNUNET_TIME_Absolute now; | 2092 | struct GNUNET_TIME_Absolute now; |
2091 | 2093 | ||
2094 | #if DEBUG_CORE | ||
2092 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2095 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2093 | "Creating neighbour entry for peer `%4s'\n", | 2096 | "Creating neighbour entry for peer `%4s'\n", |
2094 | GNUNET_i2s (pid)); | 2097 | GNUNET_i2s (pid)); |
2098 | #endif | ||
2095 | n = GNUNET_malloc (sizeof (struct Neighbour)); | 2099 | n = GNUNET_malloc (sizeof (struct Neighbour)); |
2096 | n->next = neighbours; | 2100 | n->next = neighbours; |
2097 | neighbours = n; | 2101 | neighbours = n; |