[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16965 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16965 - gnunet/src/dht |
Date: |
Mon, 19 Sep 2011 22:19:17 +0200 |
Author: grothoff
Date: 2011-09-19 22:19:17 +0200 (Mon, 19 Sep 2011)
New Revision: 16965
Modified:
gnunet/src/dht/test_dht_twopeer.c
Log:
fix emsg
Modified: gnunet/src/dht/test_dht_twopeer.c
===================================================================
--- gnunet/src/dht/test_dht_twopeer.c 2011-09-19 20:07:17 UTC (rev 16964)
+++ gnunet/src/dht/test_dht_twopeer.c 2011-09-19 20:19:17 UTC (rev 16965)
@@ -87,7 +87,7 @@
/**
* Check whether peers successfully shut down.
*/
-void
+static void
shutdown_callback (void *cls, const char *emsg)
{
if (emsg != NULL)
@@ -178,14 +178,8 @@
if (0 !=
memcmp (&get_context->peer->hashPubKey, key, sizeof (GNUNET_HashCode)))
{
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Key returned is not the same key as was searched for!\n");
- fprintf (stderr,
- "Looked for key `%s'\n",
- GNUNET_h2s (&get_context->peer->hashPubKey));
- fprintf (stderr,
- "Got key `%s'\n",
- GNUNET_h2s (key));
GNUNET_SCHEDULER_cancel (die_task);
die_task =
GNUNET_SCHEDULER_add_now (&end_badly,
@@ -233,13 +227,13 @@
get_context->get_attempts);
else
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Too many attempts failed, ending test!\n",
get_context->get_attempts);
GNUNET_SCHEDULER_cancel (die_task);
die_task =
GNUNET_SCHEDULER_add_now (&end_badly,
- "key mismatch in get response!\n");
+ "GET attempt failed, ending test!\n");
return;
}
get_context->get_attempts++;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16965 - gnunet/src/dht,
gnunet <=