[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11079 - gnunet/src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11079 - gnunet/src/hostlist |
Date: |
Tue, 27 Apr 2010 17:06:08 +0200 |
Author: wachs
Date: 2010-04-27 17:06:08 +0200 (Tue, 27 Apr 2010)
New Revision: 11079
Modified:
gnunet/src/hostlist/hostlist-server.c
Log:
Modified: gnunet/src/hostlist/hostlist-server.c
===================================================================
--- gnunet/src/hostlist/hostlist-server.c 2010-04-27 13:40:04 UTC (rev
11078)
+++ gnunet/src/hostlist/hostlist-server.c 2010-04-27 15:06:08 UTC (rev
11079)
@@ -236,10 +236,12 @@
GNUNET_NO);
return; /* too large, skip! */
}
+#if DEBUG_HOSTLIST_SERVER
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Adding peer `%s' to hostlist (%u bytes)\n",
GNUNET_i2s (peer),
(unsigned int) s);
+#endif
GNUNET_array_grow (results->data,
results->size,
old + s);
@@ -366,6 +368,9 @@
"Sent advertisement message: Copied %u bytes into buffer!\n",
(unsigned int) transmission_size);
hostlist_adv_count++;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ " # Sent advertisement message: %u\n",
+ hostlist_adv_count);
GNUNET_STATISTICS_set (stats,
gettext_noop("# hostlist advertisements send"),
hostlist_adv_count,
@@ -453,9 +458,10 @@
uint32_t trust)
{
struct HostSet *results;
-
+#if DEBUG_HOSTLIST_SERVER
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Peerinfo is notifying us to rebuild our hostlist\n");
+#endif
results = GNUNET_malloc(sizeof(struct HostSet));
GNUNET_assert (peerinfo != NULL);
pitr = GNUNET_PEERINFO_iterate (peerinfo,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11079 - gnunet/src/hostlist,
gnunet <=