diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-30 21:33:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-30 21:33:41 +0000 |
commit | 90e03c9b085b5948c813f47079558b5160284cbe (patch) | |
tree | fe8d24c7bd82516e5c14b7a0cf79e451b5719b0b | |
parent | 6811ba4e3b29edb3ec58d208590a193ed127e8de (diff) | |
download | gnunet-90e03c9b085b5948c813f47079558b5160284cbe.tar.gz gnunet-90e03c9b085b5948c813f47079558b5160284cbe.zip |
-LRN: better size mismatch reports
-rw-r--r-- | src/core/core_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
984 | if ((mh->expected_size != ntohs (em->size)) && (mh->expected_size != 0)) | 984 | if ((mh->expected_size != ntohs (em->size)) && (mh->expected_size != 0)) |
985 | { | 985 | { |
986 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 986 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
987 | "Unexpected message size for message of type %u\n", | 987 | "Unexpected message size %u for message of type %u from peer `%4s'\n", |
988 | mh->type); | 988 | htons (em->size), mh->type, GNUNET_i2s (&ntm->peer)); |
989 | GNUNET_break_op (0); | 989 | GNUNET_break_op (0); |
990 | continue; | 990 | continue; |
991 | } | 991 | } |