aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-04-06 13:37:05 +0000
committerNathan S. Evans <evans@in.tum.de>2010-04-06 13:37:05 +0000
commit76cd359a2bca34b49d829dd9dd3529386044b85a (patch)
treeb7320b2cd172651338a7472704b36e8aa14b0300 /src
parent7794a9512cee7deb382f54419ed5744520acda28 (diff)
downloadgnunet-76cd359a2bca34b49d829dd9dd3529386044b85a.tar.gz
gnunet-76cd359a2bca34b49d829dd9dd3529386044b85a.zip
cleanup debugging
Diffstat (limited to 'src')
-rw-r--r--src/dht/dht_api.c4
-rw-r--r--src/dht/gnunet-dht-get-peer.c4
-rw-r--r--src/dht/test_dht_api.c2
3 files changed, 5 insertions, 5 deletions
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,
843 get_msg = GNUNET_malloc (sizeof (struct GNUNET_DHT_GetMessage)); 843 get_msg = GNUNET_malloc (sizeof (struct GNUNET_DHT_GetMessage));
844 get_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_GET); 844 get_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_GET);
845 get_msg->header.size = htons (sizeof (struct GNUNET_DHT_GetMessage)); 845 get_msg->header.size = htons (sizeof (struct GNUNET_DHT_GetMessage));
846 get_msg->type = htonl (type); 846 get_msg->type = htons (type);
847 847
848 get_handle->route_handle = 848 get_handle->route_handle =
849 GNUNET_DHT_route_start (handle, key, 0, 0, &get_msg->header, timeout, 849 GNUNET_DHT_route_start (handle, key, 0, 0, &get_msg->header, timeout,
@@ -1075,7 +1075,7 @@ GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle,
1075 put_msg = GNUNET_malloc (msize); 1075 put_msg = GNUNET_malloc (msize);
1076 put_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_PUT); 1076 put_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_PUT);
1077 put_msg->header.size = htons (msize); 1077 put_msg->header.size = htons (msize);
1078 put_msg->type = htonl (type); 1078 put_msg->type = htons (type);
1079 put_msg->data_size = htons (size); 1079 put_msg->data_size = htons (size);
1080 put_msg->expiration = exp; 1080 put_msg->expiration = exp;
1081 memcpy (&put_msg[1], data, size); 1081 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,
108 const struct GNUNET_PeerIdentity *peer, 108 const struct GNUNET_PeerIdentity *peer,
109 const struct GNUNET_MessageHeader *reply) 109 const struct GNUNET_MessageHeader *reply)
110{ 110{
111 111 result_count++;
112 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 112 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
113 "test_find_peer_processor called (peer `%s'), stopping find peer request!\n", GNUNET_i2s(peer)); 113 "test_find_peer_processor called (peer `%s'), total results %d!\n", GNUNET_i2s(peer), result_count);
114 114
115} 115}
116 116
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 @@
33#include "gnunet_scheduler_lib.h" 33#include "gnunet_scheduler_lib.h"
34#include "gnunet_dht_service.h" 34#include "gnunet_dht_service.h"
35 35
36#define VERBOSE GNUNET_YES 36#define VERBOSE GNUNET_NO
37 37
38#define VERBOSE_ARM GNUNET_NO 38#define VERBOSE_ARM GNUNET_NO
39 39