From: Bart Polot Date: Thu, 19 Dec 2013 13:26:12 +0000 (+0000) Subject: - debug info on API side X-Git-Tag: initial-import-from-subversion-38251~5304 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=768b2fa801cc2ef7f9dc94a2b67ea593d832da9b;p=oweals%2Fgnunet.git - debug info on API side --- diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index d670f4f30..87bca0be5 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -835,15 +835,14 @@ process_incoming_data (struct GNUNET_MESH_Handle *h, unsigned int i; uint16_t type; - LOG (GNUNET_ERROR_TYPE_DEBUG, - "Got a data message!\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, "Got a data message!\n"); dmsg = (struct GNUNET_MESH_LocalData *) message; ch = retrieve_channel (h, ntohl (dmsg->id)); payload = (struct GNUNET_MessageHeader *) &dmsg[1]; - LOG (GNUNET_ERROR_TYPE_DEBUG, - " %s data on channel %s [%X]\n", - ch->chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_SERV ? "fwd" : "bck", + LOG (GNUNET_ERROR_TYPE_DEBUG, " %s data on channel %s [%X]\n", + GM_f2s (ch->chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_SERV), GNUNET_i2s (GNUNET_PEER_resolve2 (ch->peer)), ntohl (dmsg->id)); + LOG (GNUNET_ERROR_TYPE_DEBUG, " %u bytes\n", ntohs (message->size)); if (NULL == ch) { /* Channel was ignored/destroyed, probably service didn't get it yet */