log
authorChristian Grothoff <christian@grothoff.org>
Tue, 20 Jul 2010 21:58:03 +0000 (21:58 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 20 Jul 2010 21:58:03 +0000 (21:58 +0000)
src/util/server.c

index 3011f4927223bbbac668f044eed039e527381fd1..e543de6670150c5bf8c5f1d06f5864debe83df78 100644 (file)
@@ -617,6 +617,11 @@ GNUNET_SERVER_inject (struct GNUNET_SERVER_Handle *server,
             {
               if ((mh->expected_size != 0) && (mh->expected_size != size))
                 {
+                 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                             _("Expected %u bytes for message of type %u, got %u\n"),
+                             mh->expected_size,
+                             mh->type,
+                             size);
                   GNUNET_break_op (0);
                   return GNUNET_SYSERR;
                 }