fix conversation issue to make tests pass again
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 Feb 2017 16:57:14 +0000 (17:57 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 Feb 2017 16:57:14 +0000 (17:57 +0100)
src/conversation/gnunet-service-conversation.c
src/conversation/test_conversation_api_twocalls.c

index 4e1ac0d156deceab6e8c3008f4f5c8d8098df42b..f80cc1d11303e30828045d7b89976561fbac48c9 100644 (file)
@@ -620,7 +620,7 @@ handle_client_audio_message (void *cls,
                              const struct ClientAudioMessage *msg)
 {
   struct Line *line = cls;
-  struct ClientAudioMessage *mam;
+  struct CadetAudioMessage *mam;
   struct Channel *ch;
   size_t size;
 
@@ -672,6 +672,10 @@ handle_client_audio_message (void *cls,
     ch->env = NULL;
   }
 
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Received %u bytes of AUDIO data from client CID %u\n",
+              (unsigned int) size,
+              msg->cid);
   ch->env = GNUNET_MQ_msg_extra (mam,
                                  size,
                                  GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_AUDIO);
index 2e2a73e3fc1cb35fde17fb8ce19ef589d7de8149..7d2705e705ee94ab2e77663123ffb5cfe213aaf3 100644 (file)
@@ -187,7 +187,8 @@ play (void *cls,
     phone_i++;
   else
   {
-    LOG_DEBUG ("Received unexpected data %.*s\n",
+    LOG_DEBUG ("Received %u bytes of unexpected data `%.*s'\n",
+               (unsigned int) data_size,
                (int) data_size,
                (const char *) data);
   }