aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_mesh_client.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-18 11:37:37 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-18 11:37:37 +0000
commit403036599d9327b6460ed3080162bad91e3c992a (patch)
tree5744c244baba3a1e80bf363ddd7cbdcacf313144 /src/fs/gnunet-service-fs_mesh_client.c
parentb9ca547a79b70b87fea6b7a38566e9bd176d93f1 (diff)
downloadgnunet-403036599d9327b6460ed3080162bad91e3c992a.tar.gz
gnunet-403036599d9327b6460ed3080162bad91e3c992a.zip
-nicer logging
Diffstat (limited to 'src/fs/gnunet-service-fs_mesh_client.c')
-rw-r--r--src/fs/gnunet-service-fs_mesh_client.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_mesh_client.c b/src/fs/gnunet-service-fs_mesh_client.c
index 06668a46e..5acf95ef2 100644
--- a/src/fs/gnunet-service-fs_mesh_client.c
+++ b/src/fs/gnunet-service-fs_mesh_client.c
@@ -93,7 +93,7 @@ struct GSF_MeshRequest
93 93
94 /** 94 /**
95 * Did we transmit this request already? YES if we are 95 * Did we transmit this request already? YES if we are
96 * in the 'waiting' DLL, NO if we are in the 'pending' DLL. 96 * in the 'waiting_map', NO if we are in the 'pending' DLL.
97 */ 97 */
98 int was_transmitted; 98 int was_transmitted;
99}; 99};
@@ -316,15 +316,16 @@ transmit_sqm (void *cls,
316 GNUNET_CONTAINER_DLL_remove (mh->pending_head, 316 GNUNET_CONTAINER_DLL_remove (mh->pending_head,
317 mh->pending_tail, 317 mh->pending_tail,
318 sr); 318 sr);
319 GNUNET_CONTAINER_multihashmap_put (mh->waiting_map, 319 GNUNET_assert (GNUNET_OK ==
320 &sr->query, 320 GNUNET_CONTAINER_multihashmap_put (mh->waiting_map,
321 sr, 321 &sr->query,
322 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE); 322 sr,
323 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE));
324 sr->was_transmitted = GNUNET_YES;
323 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 325 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
324 "Sending query for %s via mesh to %s\n", 326 "Sending query for %s via mesh to %s\n",
325 GNUNET_h2s (&sr->query), 327 GNUNET_h2s (&sr->query),
326 GNUNET_i2s (&mh->target)); 328 GNUNET_i2s (&mh->target));
327 sr->was_transmitted = GNUNET_YES;
328 sqm.header.size = htons (sizeof (sqm)); 329 sqm.header.size = htons (sizeof (sqm));
329 sqm.header.type = htons (GNUNET_MESSAGE_TYPE_FS_MESH_QUERY); 330 sqm.header.type = htons (GNUNET_MESSAGE_TYPE_FS_MESH_QUERY);
330 sqm.type = htonl (sr->type); 331 sqm.type = htonl (sr->type);