clarify
authorChristian Grothoff <christian@grothoff.org>
Tue, 11 May 2010 19:18:43 +0000 (19:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 11 May 2010 19:18:43 +0000 (19:18 +0000)
src/core/core_api.c
src/core/test_core_api_data.conf
src/core/test_core_api_start_only.c

index f8c7c0aa6ef79a231e1d5454bb897117db764cc8..3fcb5fb37997e9c0309798972f461f82ed1fc121 100644 (file)
@@ -547,12 +547,16 @@ init_reply_handler (void *cls, const struct GNUNET_MessageHeader *msg)
       (ntohs (msg->size) != sizeof (struct InitReplyMessage)) ||
       (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY))
     {
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                  _
-                  ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"),
-                  "INIT_REPLY",
-                 (msg == NULL) ? -1 : ntohs (msg->type),
-                 (msg == NULL) ? -1 : ntohs (msg->size));
+      if (msg != NULL)
+       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                   _
+                   ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"),
+                   "INIT_REPLY",
+                   ntohs (msg->type),
+                   ntohs (msg->size));
+      else
+       GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                   _("Failed to connect to core service.\n"));
       GNUNET_break (msg == NULL);
       transmit_start (h, 0, NULL);
       return;
index 47e6ec76f69a62a479ba09378554ccbc72a5630a..3845c7a09fca43eec420c6d848790b6ee582ce2f 100644 (file)
@@ -3,3 +3,7 @@ SERVICEHOME = /tmp/test-gnunet-core/
 
 [testing]
 WEAKRANDOM = YES
+
+[arm]
+DEBUG = YES
+OPTIONS = -L DEBUG
index 86eff056c0c91eea504012731457ff1adce33e32..f335978364647556f0011ca53d508096f68720bd 100644 (file)
@@ -31,7 +31,7 @@
 #include "gnunet_program_lib.h"
 #include "gnunet_scheduler_lib.h"
 
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
 
 #define START_ARM GNUNET_YES