better error message
authorChristian Grothoff <christian@grothoff.org>
Thu, 24 Nov 2011 12:45:59 +0000 (12:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 24 Nov 2011 12:45:59 +0000 (12:45 +0000)
src/core/gnunet-service-core_neighbours.c

index 5014298bfb4dfdb8b450d6623cee32db4b259712..0e292fbd1456c0982e5b4477fa1a5ad2bb31cfd4 100644 (file)
@@ -427,8 +427,10 @@ handle_transport_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
     break;
   default:
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                _("Unsupported message of type %u received.\n"),
-                (unsigned int) type);
+                _("Unsupported message of type %u (%u bytes) received from peer `%s'\n"),
+                (unsigned int) type,
+               (unsigned int) ntohs (message->size),
+               GNUNET_i2s (peer));
     return;
   }
 }