diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-06-27 14:30:36 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-06-27 14:30:36 +0000 |
commit | 50e62b4ff51cec0f102eea6bf91c4f60697ce660 (patch) | |
tree | 8db40bafe17a2e9ba8d9baeb6466c1b550e89b74 /src/dv | |
parent | 0ee59577ee81b92ee492491f4d685f26bc186c17 (diff) | |
download | gnunet-50e62b4ff51cec0f102eea6bf91c4f60697ce660.tar.gz gnunet-50e62b4ff51cec0f102eea6bf91c4f60697ce660.zip |
debug fix
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index 6ef4e82fe..55e02e848 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -1181,7 +1181,7 @@ send_message (const struct GNUNET_PeerIdentity * recipient, | |||
1181 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "%s: Sending DATA message. Sender id %u, source %s, destination %s, via %s\n", GNUNET_i2s(&my_identity), sender_id, &encPeerFrom, &encPeerTo, &encPeerVia); | 1181 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "%s: Sending DATA message. Sender id %u, source %s, destination %s, via %s\n", GNUNET_i2s(&my_identity), sender_id, &encPeerFrom, &encPeerTo, &encPeerVia); |
1182 | #endif | 1182 | #endif |
1183 | memcpy (&toSend[1], message, message_size); | 1183 | memcpy (&toSend[1], message, message_size); |
1184 | if (source->pkey == NULL) /* Test our hypothesis about message failures! */ | 1184 | if ((source != NULL) && (source->pkey == NULL)) /* Test our hypothesis about message failures! */ |
1185 | { | 1185 | { |
1186 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "%s: Sending message, but anticipate recipient will not know sender!!!\n\n\n"); | 1186 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "%s: Sending message, but anticipate recipient will not know sender!!!\n\n\n"); |
1187 | } | 1187 | } |
@@ -1194,10 +1194,6 @@ send_message (const struct GNUNET_PeerIdentity * recipient, | |||
1194 | #endif | 1194 | #endif |
1195 | 1195 | ||
1196 | GNUNET_SCHEDULER_add_now(sched, try_core_send, NULL); | 1196 | GNUNET_SCHEDULER_add_now(sched, try_core_send, NULL); |
1197 | /*if (core_transmit_handle == NULL) | ||
1198 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, importance, timeout, &target->referrer->identity, msg_size, &core_transmit_notify, NULL); | ||
1199 | else | ||
1200 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "%s: CORE ALREADY SENDING\n", "DV SEND MESSAGE", msg_size);*/ | ||
1201 | return (int) cost; | 1197 | return (int) cost; |
1202 | } | 1198 | } |
1203 | 1199 | ||
@@ -1488,9 +1484,8 @@ static int handle_dv_data_message (void *cls, | |||
1488 | #endif | 1484 | #endif |
1489 | 1485 | ||
1490 | #if DEBUG_DV_MESSAGES | 1486 | #if DEBUG_DV_MESSAGES |
1491 | direct_id = GNUNET_strdup(GNUNET_i2s(&dn->identity)); | ||
1492 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1487 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1493 | "%s: DROPPING MESSAGE uid %u type %d, routing loop! Message immediately from %s!\n", my_short_id, ntohl(incoming->uid), ntohs(packed_message->type), direct_id); | 1488 | "%s: DROPPING MESSAGE uid %u type %d, routing loop! Message immediately from %s!\n", my_short_id, ntohl(incoming->uid), ntohs(packed_message->type), GNUNET_i2s(&dn->identity)); |
1494 | #endif | 1489 | #endif |
1495 | return GNUNET_OK; | 1490 | return GNUNET_OK; |
1496 | } | 1491 | } |