aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-01-20 12:48:28 +0000
committerBart Polot <bart@net.in.tum.de>2012-01-20 12:48:28 +0000
commitf7a78994c2d73e7fd31ff2f34d16095470bf0a07 (patch)
tree710a8bacd76c41b164c4eb0feda6a96ff1e8a5c3 /src/mesh
parent9b92f989917954c26ff9aef76c105dd89a60f001 (diff)
downloadgnunet-f7a78994c2d73e7fd31ff2f34d16095470bf0a07.tar.gz
gnunet-f7a78994c2d73e7fd31ff2f34d16095470bf0a07.zip
Added more debug info
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 02811a502..924b484df 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -913,7 +913,7 @@ process_incoming_data (struct GNUNET_MESH_Handle *h,
913 t = retrieve_tunnel (h, ntohl (ucast->tid)); 913 t = retrieve_tunnel (h, ntohl (ucast->tid));
914 payload = (struct GNUNET_MessageHeader *) &ucast[1]; 914 payload = (struct GNUNET_MessageHeader *) &ucast[1];
915 peer = &ucast->oid; 915 peer = &ucast->oid;
916 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "mesh: on tunnel %s [%x]\n", 916 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "mesh: ucast on tunnel %s [%x]\n",
917 GNUNET_i2s (peer), ntohl (ucast->tid)); 917 GNUNET_i2s (peer), ntohl (ucast->tid));
918 break; 918 break;
919 case GNUNET_MESSAGE_TYPE_MESH_MULTICAST: 919 case GNUNET_MESSAGE_TYPE_MESH_MULTICAST:
@@ -921,12 +921,16 @@ process_incoming_data (struct GNUNET_MESH_Handle *h,
921 t = retrieve_tunnel (h, ntohl (mcast->tid)); 921 t = retrieve_tunnel (h, ntohl (mcast->tid));
922 payload = (struct GNUNET_MessageHeader *) &mcast[1]; 922 payload = (struct GNUNET_MessageHeader *) &mcast[1];
923 peer = &mcast->oid; 923 peer = &mcast->oid;
924 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "mesh: mcast on tunnel %s [%x]\n",
925 GNUNET_i2s (peer), ntohl (mcast->tid));
924 break; 926 break;
925 case GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN: 927 case GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN:
926 to_orig = (struct GNUNET_MESH_ToOrigin *) message; 928 to_orig = (struct GNUNET_MESH_ToOrigin *) message;
927 t = retrieve_tunnel (h, ntohl (to_orig->tid)); 929 t = retrieve_tunnel (h, ntohl (to_orig->tid));
928 payload = (struct GNUNET_MessageHeader *) &to_orig[1]; 930 payload = (struct GNUNET_MessageHeader *) &to_orig[1];
929 peer = &to_orig->sender; 931 peer = &to_orig->sender;
932 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "mesh: reply on tunnel %s [%x]\n",
933 GNUNET_i2s (peer), ntohl (to_orig->tid));
930 break; 934 break;
931 default: 935 default:
932 GNUNET_break (0); 936 GNUNET_break (0);