cleanup debugging
authorNathan S. Evans <evans@in.tum.de>
Tue, 6 Apr 2010 13:37:05 +0000 (13:37 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 6 Apr 2010 13:37:05 +0000 (13:37 +0000)
src/dht/dht_api.c
src/dht/gnunet-dht-get-peer.c
src/dht/test_dht_api.c

index 12a83fc7270f834e1462dae3e2e8d7b6bbd43235..8722e7b75f6fb76f92cf601fba1be0c0672a8e54 100644 (file)
@@ -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);
index 391084bb6fcfac6d50dea4be636867c24f8a751d..2e13e7f67b789efb9e5d4257445779afb6edf4b9 100644 (file)
@@ -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);
 
 }
 
index aa0b32240e389af177532a4570b9b13ca45a0981..1e1a01e6e983a9cbd27d803a84c28d02c14e3b2a 100644 (file)
@@ -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