-doxygen, error messages
authorChristian Grothoff <christian@grothoff.org>
Mon, 27 Jun 2016 16:56:38 +0000 (16:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 27 Jun 2016 16:56:38 +0000 (16:56 +0000)
src/include/gnunet_protocols.h
src/util/mq.c

index 1435612d7dc5e048f720384edf10a9dc0f30d936..872c07623b1cd1d7de66479a5fe69b5b20304a41 100644 (file)
@@ -1630,7 +1630,7 @@ extern "C"
 #define GNUNET_MESSAGE_TYPE_TESTBED_SLAVE_CONFIGURATION 480
 
 /**
- * Message to signal the result of GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS request
+ * Message to signal the result of #GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS request
  */
 #define GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS_RESULT 481
 
index 917f4566e45ac41f3639824ab789f4a25a6da1c7..4b196a740a3a991a7db950c0a25f3dbd248d37b7 100644 (file)
@@ -225,6 +225,9 @@ GNUNET_MQ_inject_message (struct GNUNET_MQ_Handle *mq,
       {
        /* Too small, or not an exact size and
           no 'mv' handler to check rest */
+        GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                    "Received malformed message of type %u\n",
+                    (unsigned int) handler->type);
        GNUNET_MQ_inject_error (mq,
                                GNUNET_MQ_ERROR_MALFORMED);
        break;
@@ -239,6 +242,9 @@ GNUNET_MQ_inject_message (struct GNUNET_MQ_Handle *mq,
       else
       {
        /* Message rejected by check routine */
+        GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                    "Received malformed message of type %u\n",
+                    (unsigned int) handler->type);
        GNUNET_MQ_inject_error (mq,
                                GNUNET_MQ_ERROR_MALFORMED);
       }