From 90e03c9b085b5948c813f47079558b5160284cbe Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 30 Dec 2011 21:33:41 +0000 Subject: -LRN: better size mismatch reports --- src/core/core_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/core_api.c') 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; } -- cgit v1.2.3