diff options
Diffstat (limited to 'src/dht/dht_api.c')
-rw-r--r-- | src/dht/dht_api.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index a50d2a228..4c653e105 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -435,7 +435,9 @@ process_reply (void *cls, const GNUNET_HashCode * key, void *value) | |||
435 | if (dht_msg->unique_id != get_handle->unique_id) | 435 | if (dht_msg->unique_id != get_handle->unique_id) |
436 | { | 436 | { |
437 | /* UID mismatch */ | 437 | /* UID mismatch */ |
438 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Ignoring reply (UID mismatch: %llu/%llu)\n", | 438 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
439 | "Ignoring reply for %s: UID mismatch: %llu/%llu\n", | ||
440 | GNUNET_h2s (key), | ||
439 | dht_msg->unique_id, get_handle->unique_id); | 441 | dht_msg->unique_id, get_handle->unique_id); |
440 | return GNUNET_YES; | 442 | return GNUNET_YES; |
441 | } | 443 | } |
@@ -455,6 +457,10 @@ process_reply (void *cls, const GNUNET_HashCode * key, void *value) | |||
455 | return GNUNET_NO; | 457 | return GNUNET_NO; |
456 | } | 458 | } |
457 | data_length = msize - meta_length; | 459 | data_length = msize - meta_length; |
460 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
461 | "Giving %u byte reply for %s to application\n", | ||
462 | (unsigned int) data_length, | ||
463 | GNUNET_h2s (key)); | ||
458 | put_path = (const struct GNUNET_PeerIdentity *) &dht_msg[1]; | 464 | put_path = (const struct GNUNET_PeerIdentity *) &dht_msg[1]; |
459 | get_path = &put_path[put_path_length]; | 465 | get_path = &put_path[put_path_length]; |
460 | data = &get_path[get_path_length]; | 466 | data = &get_path[get_path_length]; |
@@ -498,8 +504,10 @@ service_message_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
498 | do_disconnect (handle); | 504 | do_disconnect (handle); |
499 | return; | 505 | return; |
500 | } | 506 | } |
501 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Received reply from DHT service\n"); | ||
502 | dht_msg = (const struct GNUNET_DHT_ClientResultMessage *) msg; | 507 | dht_msg = (const struct GNUNET_DHT_ClientResultMessage *) msg; |
508 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
509 | "Received reply for `%s' from DHT service\n", | ||
510 | GNUNET_h2s (&dht_msg->key)); | ||
503 | GNUNET_CONTAINER_multihashmap_get_multiple (handle->active_requests, | 511 | GNUNET_CONTAINER_multihashmap_get_multiple (handle->active_requests, |
504 | &dht_msg->key, &process_reply, | 512 | &dht_msg->key, &process_reply, |
505 | (void *) dht_msg); | 513 | (void *) dht_msg); |