aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-06-24 12:53:28 +0000
committerNathan S. Evans <evans@in.tum.de>2010-06-24 12:53:28 +0000
commite65e2c0c6d98fe908f1af003a77236f134c70eeb (patch)
treeb15647e460333a0cb8f0d0d41b8137243c34170a /src/dv
parent2cae42046220b7d6a9cd1ce0f908d737746e7d56 (diff)
downloadgnunet-e65e2c0c6d98fe908f1af003a77236f134c70eeb.tar.gz
gnunet-e65e2c0c6d98fe908f1af003a77236f134c70eeb.zip
logging
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/gnunet-service-dv.c6
-rw-r--r--src/dv/plugin_transport_dv.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index f95a2ac59..2647e3482 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -1213,7 +1213,7 @@ void tokenized_message_handler (void *cls,
1213 { 1213 {
1214#if DEBUG_DV_MESSAGES 1214#if DEBUG_DV_MESSAGES
1215 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1215 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1216 "%s: Receives %s message for me, uid %u, total size %d cost %u from %s!\n", my_short_id, "DV DATA", ctx->uid, ntohs(message->size), ctx->distant->cost, GNUNET_i2s(&ctx->distant->identity)); 1216 "%s: Receives %s message for me, uid %u, size %d, type %d cost %u from %s!\n", my_short_id, "DV DATA", ctx->uid, ntohs(message->size), ntohs(message->type), ctx->distant->cost, GNUNET_i2s(&ctx->distant->identity));
1217#endif 1217#endif
1218 GNUNET_assert(memcmp(ctx->peer, &ctx->distant->identity, sizeof(struct GNUNET_PeerIdentity)) != 0); 1218 GNUNET_assert(memcmp(ctx->peer, &ctx->distant->identity, sizeof(struct GNUNET_PeerIdentity)) != 0);
1219 send_to_plugin(ctx->peer, message, ntohs(message->size), &ctx->distant->identity, ctx->distant->cost); 1219 send_to_plugin(ctx->peer, message, ntohs(message->size), &ctx->distant->identity, ctx->distant->cost);
@@ -1310,9 +1310,9 @@ static int handle_dv_data_message (void *cls,
1310 if (pos == NULL) 1310 if (pos == NULL)
1311 { 1311 {
1312 direct_id = GNUNET_strdup(GNUNET_i2s(&dn->identity)); 1312 direct_id = GNUNET_strdup(GNUNET_i2s(&dn->identity));
1313#if DEBUG_DV 1313#if DEBUG_DV_MESSAGES
1314 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1314 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1315 "%s: unknown sender (%u), Message from %s!\n", GNUNET_i2s(&my_identity), ntohl(incoming->sender), direct_id); 1315 "%s: unknown sender (%u), Message uid %llu from %s!\n", GNUNET_i2s(&my_identity), ntohl(incoming->sender), ntohl(incoming->uid), direct_id);
1316#endif 1316#endif
1317 GNUNET_free(direct_id); 1317 GNUNET_free(direct_id);
1318 pos = dn->referee_head; 1318 pos = dn->referee_head;
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c
index 38826e47f..578e0943a 100644
--- a/src/dv/plugin_transport_dv.c
+++ b/src/dv/plugin_transport_dv.c
@@ -158,7 +158,7 @@ void handle_dv_message_received (void *cls,
158 my_id = GNUNET_strdup(GNUNET_i2s(plugin->env->my_identity)); 158 my_id = GNUNET_strdup(GNUNET_i2s(plugin->env->my_identity));
159 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, 159 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
160 "plugin_transport_dv", 160 "plugin_transport_dv",
161 _("%s Received message from %s) of type %d, distance %u!\n"), 161 _("%s Received message from %s of type %d, distance %u!\n"),
162 my_id, GNUNET_i2s(sender), ntohs(((struct GNUNET_MessageHeader *)msg)->type), distance); 162 my_id, GNUNET_i2s(sender), ntohs(((struct GNUNET_MessageHeader *)msg)->type), distance);
163 GNUNET_free_non_null(my_id); 163 GNUNET_free_non_null(my_id);
164#endif 164#endif