diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-21 17:57:14 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-21 17:57:14 +0100 |
commit | 627d9d522445e1daa0c7a77096c6f73e53051deb (patch) | |
tree | d2f33c9fe8ae6c3053102486c8d334cef49ed1ef /src | |
parent | 89e606364e4ccb77d6e6d8b0b7518c1749d90243 (diff) | |
download | gnunet-627d9d522445e1daa0c7a77096c6f73e53051deb.tar.gz gnunet-627d9d522445e1daa0c7a77096c6f73e53051deb.zip |
fix conversation issue to make tests pass again
Diffstat (limited to 'src')
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 6 | ||||
-rw-r--r-- | src/conversation/test_conversation_api_twocalls.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index 4e1ac0d15..f80cc1d11 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c | |||
@@ -620,7 +620,7 @@ handle_client_audio_message (void *cls, | |||
620 | const struct ClientAudioMessage *msg) | 620 | const struct ClientAudioMessage *msg) |
621 | { | 621 | { |
622 | struct Line *line = cls; | 622 | struct Line *line = cls; |
623 | struct ClientAudioMessage *mam; | 623 | struct CadetAudioMessage *mam; |
624 | struct Channel *ch; | 624 | struct Channel *ch; |
625 | size_t size; | 625 | size_t size; |
626 | 626 | ||
@@ -672,6 +672,10 @@ handle_client_audio_message (void *cls, | |||
672 | ch->env = NULL; | 672 | ch->env = NULL; |
673 | } | 673 | } |
674 | 674 | ||
675 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
676 | "Received %u bytes of AUDIO data from client CID %u\n", | ||
677 | (unsigned int) size, | ||
678 | msg->cid); | ||
675 | ch->env = GNUNET_MQ_msg_extra (mam, | 679 | ch->env = GNUNET_MQ_msg_extra (mam, |
676 | size, | 680 | size, |
677 | GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_AUDIO); | 681 | GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_AUDIO); |
diff --git a/src/conversation/test_conversation_api_twocalls.c b/src/conversation/test_conversation_api_twocalls.c index 2e2a73e3f..7d2705e70 100644 --- a/src/conversation/test_conversation_api_twocalls.c +++ b/src/conversation/test_conversation_api_twocalls.c | |||
@@ -187,7 +187,8 @@ play (void *cls, | |||
187 | phone_i++; | 187 | phone_i++; |
188 | else | 188 | else |
189 | { | 189 | { |
190 | LOG_DEBUG ("Received unexpected data %.*s\n", | 190 | LOG_DEBUG ("Received %u bytes of unexpected data `%.*s'\n", |
191 | (unsigned int) data_size, | ||
191 | (int) data_size, | 192 | (int) data_size, |
192 | (const char *) data); | 193 | (const char *) data); |
193 | } | 194 | } |