From: Christian Grothoff Date: Fri, 30 Dec 2011 21:33:41 +0000 (+0000) Subject: -LRN: better size mismatch reports X-Git-Tag: initial-import-from-subversion-38251~15512 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90e03c9b085b5948c813f47079558b5160284cbe;p=oweals%2Fgnunet.git -LRN: better size mismatch reports --- diff --git a/src/core/core_api.c b/src/core/core_api.c index 281a851e0..66df134fb 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -984,8 +984,8 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg) if ((mh->expected_size != ntohs (em->size)) && (mh->expected_size != 0)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Unexpected message size for message of type %u\n", - mh->type); + "Unexpected message size %u for message of type %u from peer `%4s'\n", + htons (em->size), mh->type, GNUNET_i2s (&ntm->peer)); GNUNET_break_op (0); continue; }