From: Nathan S. Evans Date: Tue, 6 Apr 2010 13:37:05 +0000 (+0000) Subject: cleanup debugging X-Git-Tag: initial-import-from-subversion-38251~22241 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=76cd359a2bca34b49d829dd9dd3529386044b85a;p=oweals%2Fgnunet.git cleanup debugging --- diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index 12a83fc72..8722e7b75 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c @@ -843,7 +843,7 @@ GNUNET_DHT_get_start (struct GNUNET_DHT_Handle *handle, get_msg = GNUNET_malloc (sizeof (struct GNUNET_DHT_GetMessage)); get_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_GET); get_msg->header.size = htons (sizeof (struct GNUNET_DHT_GetMessage)); - get_msg->type = htonl (type); + get_msg->type = htons (type); get_handle->route_handle = GNUNET_DHT_route_start (handle, key, 0, 0, &get_msg->header, timeout, @@ -1075,7 +1075,7 @@ GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle, put_msg = GNUNET_malloc (msize); put_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_PUT); put_msg->header.size = htons (msize); - put_msg->type = htonl (type); + put_msg->type = htons (type); put_msg->data_size = htons (size); put_msg->expiration = exp; memcpy (&put_msg[1], data, size); diff --git a/src/dht/gnunet-dht-get-peer.c b/src/dht/gnunet-dht-get-peer.c index 391084bb6..2e13e7f67 100644 --- a/src/dht/gnunet-dht-get-peer.c +++ b/src/dht/gnunet-dht-get-peer.c @@ -108,9 +108,9 @@ void find_peer_processor (void *cls, const struct GNUNET_PeerIdentity *peer, const struct GNUNET_MessageHeader *reply) { - + result_count++; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "test_find_peer_processor called (peer `%s'), stopping find peer request!\n", GNUNET_i2s(peer)); + "test_find_peer_processor called (peer `%s'), total results %d!\n", GNUNET_i2s(peer), result_count); } diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c index aa0b32240..1e1a01e6e 100644 --- a/src/dht/test_dht_api.c +++ b/src/dht/test_dht_api.c @@ -33,7 +33,7 @@ #include "gnunet_scheduler_lib.h" #include "gnunet_dht_service.h" -#define VERBOSE GNUNET_YES +#define VERBOSE GNUNET_NO #define VERBOSE_ARM GNUNET_NO