diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-19 13:26:12 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-19 13:26:12 +0000 |
commit | 768b2fa801cc2ef7f9dc94a2b67ea593d832da9b (patch) | |
tree | 87f432259edd509e0e15ee660361aacd688ac5c0 | |
parent | a9d6a0441f6e2ed3d3f90e0473d2131ecc42e556 (diff) | |
download | gnunet-768b2fa801cc2ef7f9dc94a2b67ea593d832da9b.tar.gz gnunet-768b2fa801cc2ef7f9dc94a2b67ea593d832da9b.zip |
- debug info on API side
-rw-r--r-- | src/mesh/mesh_api.c | 9 |
1 files changed, 4 insertions, 5 deletions
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, | |||
835 | unsigned int i; | 835 | unsigned int i; |
836 | uint16_t type; | 836 | uint16_t type; |
837 | 837 | ||
838 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 838 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Got a data message!\n"); |
839 | "Got a data message!\n"); | ||
840 | dmsg = (struct GNUNET_MESH_LocalData *) message; | 839 | dmsg = (struct GNUNET_MESH_LocalData *) message; |
841 | ch = retrieve_channel (h, ntohl (dmsg->id)); | 840 | ch = retrieve_channel (h, ntohl (dmsg->id)); |
842 | payload = (struct GNUNET_MessageHeader *) &dmsg[1]; | 841 | payload = (struct GNUNET_MessageHeader *) &dmsg[1]; |
843 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 842 | LOG (GNUNET_ERROR_TYPE_DEBUG, " %s data on channel %s [%X]\n", |
844 | " %s data on channel %s [%X]\n", | 843 | GM_f2s (ch->chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_SERV), |
845 | ch->chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_SERV ? "fwd" : "bck", | ||
846 | GNUNET_i2s (GNUNET_PEER_resolve2 (ch->peer)), ntohl (dmsg->id)); | 844 | GNUNET_i2s (GNUNET_PEER_resolve2 (ch->peer)), ntohl (dmsg->id)); |
845 | LOG (GNUNET_ERROR_TYPE_DEBUG, " %u bytes\n", ntohs (message->size)); | ||
847 | if (NULL == ch) | 846 | if (NULL == ch) |
848 | { | 847 | { |
849 | /* Channel was ignored/destroyed, probably service didn't get it yet */ | 848 | /* Channel was ignored/destroyed, probably service didn't get it yet */ |