aboutsummaryrefslogtreecommitdiff
path: root/src/util/mq.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-27 16:56:38 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-27 16:56:38 +0000
commit13396b0fdbfa5b5fa35fd3cafebbb8cc3a1332b3 (patch)
tree529e62be037ef43843b3f39fdad6bd0ec9d63cab /src/util/mq.c
parent9335b7094d8a11449c322b2ca3f5a6cb7a257dad (diff)
downloadgnunet-13396b0fdbfa5b5fa35fd3cafebbb8cc3a1332b3.tar.gz
gnunet-13396b0fdbfa5b5fa35fd3cafebbb8cc3a1332b3.zip
-doxygen, error messages
Diffstat (limited to 'src/util/mq.c')
-rw-r--r--src/util/mq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index 917f4566e..4b196a740 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -225,6 +225,9 @@ GNUNET_MQ_inject_message (struct GNUNET_MQ_Handle *mq,
225 { 225 {
226 /* Too small, or not an exact size and 226 /* Too small, or not an exact size and
227 no 'mv' handler to check rest */ 227 no 'mv' handler to check rest */
228 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
229 "Received malformed message of type %u\n",
230 (unsigned int) handler->type);
228 GNUNET_MQ_inject_error (mq, 231 GNUNET_MQ_inject_error (mq,
229 GNUNET_MQ_ERROR_MALFORMED); 232 GNUNET_MQ_ERROR_MALFORMED);
230 break; 233 break;
@@ -239,6 +242,9 @@ GNUNET_MQ_inject_message (struct GNUNET_MQ_Handle *mq,
239 else 242 else
240 { 243 {
241 /* Message rejected by check routine */ 244 /* Message rejected by check routine */
245 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
246 "Received malformed message of type %u\n",
247 (unsigned int) handler->type);
242 GNUNET_MQ_inject_error (mq, 248 GNUNET_MQ_inject_error (mq,
243 GNUNET_MQ_ERROR_MALFORMED); 249 GNUNET_MQ_ERROR_MALFORMED);
244 } 250 }