aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-26 13:58:10 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-26 13:58:10 +0000
commitc68de0aac6a66ae82e9639fcb0b41855a5f95a60 (patch)
tree665781e562bb9f342b9b78fe3d1e2fb7724d61c5 /src/namestore
parenta19149287c925c03488a75e8a6ed68452f124478 (diff)
downloadgnunet-c68de0aac6a66ae82e9639fcb0b41855a5f95a60.tar.gz
gnunet-c68de0aac6a66ae82e9639fcb0b41855a5f95a60.zip
-cleaning up logging
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/namestore_api.c129
1 files changed, 66 insertions, 63 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index bffaa04a4..0fbea6fec 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -272,8 +272,8 @@ handle_lookup_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
272 int contains_sig = GNUNET_NO; 272 int contains_sig = GNUNET_NO;
273 int rd_count = 0; 273 int rd_count = 0;
274 274
275 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n", 275 LOG (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
276 "LOOKUP_NAME_RESPONSE"); 276 "LOOKUP_NAME_RESPONSE");
277 /* Operation done, remove */ 277 /* Operation done, remove */
278 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe); 278 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe);
279 rd_len = ntohs (msg->rd_len); 279 rd_len = ntohs (msg->rd_len);
@@ -289,7 +289,7 @@ handle_lookup_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
289 289
290 if (msg_len != exp_msg_len) 290 if (msg_len != exp_msg_len)
291 { 291 {
292 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Message size describes with `%u' bytes but calculated size is %u bytes \n", 292 LOG (GNUNET_ERROR_TYPE_DEBUG, "Message size describes with `%u' bytes but calculated size is %u bytes \n",
293 msg_len, exp_msg_len); 293 msg_len, exp_msg_len);
294 GNUNET_break_op (0); 294 GNUNET_break_op (0);
295 return; 295 return;
@@ -345,8 +345,8 @@ handle_record_put_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
345 struct RecordPutResponseMessage* msg, 345 struct RecordPutResponseMessage* msg,
346 size_t size) 346 size_t size)
347{ 347{
348 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n", 348 LOG (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
349 "RECORD_PUT_RESPONSE"); 349 "RECORD_PUT_RESPONSE");
350 350
351 struct GNUNET_NAMESTORE_Handle *h = qe->nsh; 351 struct GNUNET_NAMESTORE_Handle *h = qe->nsh;
352 /* Operation done, remove */ 352 /* Operation done, remove */
@@ -391,10 +391,10 @@ handle_record_create_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
391 struct RecordCreateResponseMessage* msg, 391 struct RecordCreateResponseMessage* msg,
392 size_t size) 392 size_t size)
393{ 393{
394 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
395 "RECORD_CREATE_RESPONSE");
396
397 struct GNUNET_NAMESTORE_Handle *h = qe->nsh; 394 struct GNUNET_NAMESTORE_Handle *h = qe->nsh;
395
396 LOG (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
397 "RECORD_CREATE_RESPONSE");
398 /* Operation done, remove */ 398 /* Operation done, remove */
399 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe); 399 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe);
400 400
@@ -438,11 +438,12 @@ handle_record_remove_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
438 struct RecordRemoveResponseMessage* msg, 438 struct RecordRemoveResponseMessage* msg,
439 size_t size) 439 size_t size)
440{ 440{
441 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
442 "RECORD_REMOVE_RESPONSE");
443 441
444 struct GNUNET_NAMESTORE_Handle *h = qe->nsh; 442 struct GNUNET_NAMESTORE_Handle *h = qe->nsh;
443
445 /* Operation done, remove */ 444 /* Operation done, remove */
445 LOG (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
446 "RECORD_REMOVE_RESPONSE");
446 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe); 447 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe);
447 448
448 int res = ntohl (msg->op_result); 449 int res = ntohl (msg->op_result);
@@ -510,15 +511,8 @@ handle_zone_to_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
510 struct ZoneToNameResponseMessage* msg, 511 struct ZoneToNameResponseMessage* msg,
511 size_t size) 512 size_t size)
512{ 513{
513 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
514 "ZONE_TO_NAME_RESPONSE");
515
516 struct GNUNET_NAMESTORE_Handle *h = qe->nsh; 514 struct GNUNET_NAMESTORE_Handle *h = qe->nsh;
517 /* Operation done, remove */
518 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe);
519
520 int res = ntohs (msg->res); 515 int res = ntohs (msg->res);
521
522 struct GNUNET_TIME_Absolute expire; 516 struct GNUNET_TIME_Absolute expire;
523 size_t name_len; 517 size_t name_len;
524 size_t rd_ser_len; 518 size_t rd_ser_len;
@@ -527,21 +521,25 @@ handle_zone_to_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
527 char * name_tmp; 521 char * name_tmp;
528 char * rd_tmp; 522 char * rd_tmp;
529 523
524 LOG (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
525 "ZONE_TO_NAME_RESPONSE");
526 /* Operation done, remove */
527 GNUNET_CONTAINER_DLL_remove(h->op_head, h->op_tail, qe);
530 if (res == GNUNET_SYSERR) 528 if (res == GNUNET_SYSERR)
531 { 529 {
532 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "An error occured during zone to name operation\n"); 530 LOG (GNUNET_ERROR_TYPE_DEBUG, "An error occured during zone to name operation\n");
533 if (qe->proc != NULL) 531 if (qe->proc != NULL)
534 qe->proc (qe->proc_cls, NULL, GNUNET_TIME_UNIT_ZERO_ABS, NULL, 0, NULL, NULL); 532 qe->proc (qe->proc_cls, NULL, GNUNET_TIME_UNIT_ZERO_ABS, NULL, 0, NULL, NULL);
535 } 533 }
536 else if (res == GNUNET_NO) 534 else if (res == GNUNET_NO)
537 { 535 {
538 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Namestore has no result for zone to name mapping \n"); 536 LOG (GNUNET_ERROR_TYPE_DEBUG, "Namestore has no result for zone to name mapping \n");
539 if (qe->proc != NULL) 537 if (qe->proc != NULL)
540 qe->proc (qe->proc_cls, NULL, GNUNET_TIME_UNIT_ZERO_ABS, NULL, 0, NULL, NULL); 538 qe->proc (qe->proc_cls, NULL, GNUNET_TIME_UNIT_ZERO_ABS, NULL, 0, NULL, NULL);
541 } 539 }
542 else if (res == GNUNET_YES) 540 else if (res == GNUNET_YES)
543 { 541 {
544 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Namestore has result for zone to name mapping \n"); 542 LOG (GNUNET_ERROR_TYPE_DEBUG, "Namestore has result for zone to name mapping \n");
545 543
546 name_len = ntohs (msg->name_len); 544 name_len = ntohs (msg->name_len);
547 rd_count = ntohs (msg->rd_count); 545 rd_count = ntohs (msg->rd_count);
@@ -648,20 +646,18 @@ handle_zone_iteration_response (struct GNUNET_NAMESTORE_ZoneIterator *ze,
648 struct ZoneIterationResponseMessage *msg, 646 struct ZoneIterationResponseMessage *msg,
649 size_t size) 647 size_t size)
650{ 648{
651 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
652 "ZONE_ITERATION_RESPONSE");
653
654 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubdummy; 649 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubdummy;
655 size_t msg_len = 0; 650 size_t msg_len = 0;
656 size_t exp_msg_len = 0; 651 size_t exp_msg_len = 0;
657 size_t name_len = 0; 652 size_t name_len = 0;
658 size_t rd_len = 0; 653 size_t rd_len = 0;
659 unsigned rd_count = 0; 654 unsigned rd_count = 0;
660
661 char *name_tmp; 655 char *name_tmp;
662 char *rd_ser_tmp; 656 char *rd_ser_tmp;
663 struct GNUNET_TIME_Absolute expire; 657 struct GNUNET_TIME_Absolute expire;
664 658
659 LOG (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' \n",
660 "ZONE_ITERATION_RESPONSE");
665 msg_len = ntohs (msg->gns_header.header.size); 661 msg_len = ntohs (msg->gns_header.header.size);
666 rd_len = ntohs (msg->rd_len); 662 rd_len = ntohs (msg->rd_len);
667 rd_count = ntohs (msg->rd_count); 663 rd_count = ntohs (msg->rd_count);
@@ -671,7 +667,7 @@ handle_zone_iteration_response (struct GNUNET_NAMESTORE_ZoneIterator *ze,
671 exp_msg_len = sizeof (struct ZoneIterationResponseMessage) + name_len + rd_len; 667 exp_msg_len = sizeof (struct ZoneIterationResponseMessage) + name_len + rd_len;
672 if (msg_len != exp_msg_len) 668 if (msg_len != exp_msg_len)
673 { 669 {
674 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Message size describes with `%u' bytes but calculated size is %u bytes \n", 670 LOG (GNUNET_ERROR_TYPE_DEBUG, "Message size describes with `%u' bytes but calculated size is %u bytes \n",
675 msg_len, exp_msg_len); 671 msg_len, exp_msg_len);
676 GNUNET_break_op (0); 672 GNUNET_break_op (0);
677 return; 673 return;
@@ -685,7 +681,7 @@ handle_zone_iteration_response (struct GNUNET_NAMESTORE_ZoneIterator *ze,
685 memset (&pubdummy, '\0', sizeof (pubdummy)); 681 memset (&pubdummy, '\0', sizeof (pubdummy));
686 if ((0 == name_len) && (0 == (memcmp (&msg->public_key, &pubdummy, sizeof (pubdummy))))) 682 if ((0 == name_len) && (0 == (memcmp (&msg->public_key, &pubdummy, sizeof (pubdummy)))))
687 { 683 {
688 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Zone iteration is completed!\n"); 684 LOG (GNUNET_ERROR_TYPE_DEBUG, "Zone iteration is completed!\n");
689 685
690 GNUNET_CONTAINER_DLL_remove(ze->h->z_head, ze->h->z_tail, ze); 686 GNUNET_CONTAINER_DLL_remove(ze->h->z_head, ze->h->z_tail, ze);
691 687
@@ -784,7 +780,7 @@ process_namestore_message (void *cls, const struct GNUNET_MessageHeader *msg)
784 gm = (struct GNUNET_NAMESTORE_Header *) msg; 780 gm = (struct GNUNET_NAMESTORE_Header *) msg;
785 r_id = ntohl (gm->r_id); 781 r_id = ntohl (gm->r_id);
786 782
787 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received message type %i size %i op %u\n", type, size, r_id); 783 LOG (GNUNET_ERROR_TYPE_DEBUG, "Received message type %i size %i op %u\n", type, size, r_id);
788 784
789 /* Find matching operation */ 785 /* Find matching operation */
790 if (r_id > h->last_op_id_used) 786 if (r_id > h->last_op_id_used)
@@ -1006,7 +1002,7 @@ clean_up_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1006 struct GNUNET_NAMESTORE_ZoneIterator *z; 1002 struct GNUNET_NAMESTORE_ZoneIterator *z;
1007 1003
1008 GNUNET_assert (h != NULL); 1004 GNUNET_assert (h != NULL);
1009 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Cleaning up\n"); 1005 LOG (GNUNET_ERROR_TYPE_DEBUG, "Cleaning up\n");
1010 while (NULL != (p = h->pending_head)) 1006 while (NULL != (p = h->pending_head))
1011 { 1007 {
1012 GNUNET_CONTAINER_DLL_remove (h->pending_head, h->pending_tail, p); 1008 GNUNET_CONTAINER_DLL_remove (h->pending_head, h->pending_tail, p);
@@ -1046,7 +1042,7 @@ clean_up_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1046void 1042void
1047GNUNET_NAMESTORE_disconnect (struct GNUNET_NAMESTORE_Handle *h) 1043GNUNET_NAMESTORE_disconnect (struct GNUNET_NAMESTORE_Handle *h)
1048{ 1044{
1049 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from namestore service\n"); 1045 LOG (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from namestore service\n");
1050 GNUNET_SCHEDULER_add_now (&clean_up_task, h); 1046 GNUNET_SCHEDULER_add_now (&clean_up_task, h);
1051} 1047}
1052 1048
@@ -1096,10 +1092,10 @@ GNUNET_NAMESTORE_record_put (struct GNUNET_NAMESTORE_Handle *h,
1096 GNUNET_assert (NULL != name); 1092 GNUNET_assert (NULL != name);
1097 GNUNET_assert (NULL != rd); 1093 GNUNET_assert (NULL != rd);
1098 GNUNET_assert (NULL != signature); 1094 GNUNET_assert (NULL != signature);
1099 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1095 LOG (GNUNET_ERROR_TYPE_DEBUG,
1100 "Storing %u records under name `%s'\n", 1096 "Storing %u records under name `%s'\n",
1101 rd_count, 1097 rd_count,
1102 name); 1098 name);
1103 name_len = strlen(name) + 1; 1099 name_len = strlen(name) + 1;
1104 if (name_len > 256) 1100 if (name_len > 256)
1105 { 1101 {
@@ -1144,7 +1140,7 @@ GNUNET_NAMESTORE_record_put (struct GNUNET_NAMESTORE_Handle *h,
1144 memcpy (name_tmp, name, name_len); 1140 memcpy (name_tmp, name, name_len);
1145 memcpy (rd_tmp, rd_ser, rd_ser_len); 1141 memcpy (rd_tmp, rd_ser, rd_ser_len);
1146 1142
1147 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for name `%s' with size %u\n", "NAMESTORE_RECORD_PUT", name, msg_size); 1143 LOG (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for name `%s' with size %u\n", "NAMESTORE_RECORD_PUT", name, msg_size);
1148 1144
1149 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe); 1145 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe);
1150 do_transmit(h); 1146 do_transmit(h);
@@ -1253,10 +1249,10 @@ GNUNET_NAMESTORE_record_create (struct GNUNET_NAMESTORE_Handle *h,
1253 GNUNET_assert (NULL != pkey); 1249 GNUNET_assert (NULL != pkey);
1254 GNUNET_assert (NULL != name); 1250 GNUNET_assert (NULL != name);
1255 GNUNET_assert (NULL != rd); 1251 GNUNET_assert (NULL != rd);
1256 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1252 LOG (GNUNET_ERROR_TYPE_DEBUG,
1257 "Creating record of type %u under name `%s'\n", 1253 "Creating record of type %u under name `%s'\n",
1258 rd->record_type, 1254 rd->record_type,
1259 name); 1255 name);
1260 name_len = strlen(name) + 1; 1256 name_len = strlen(name) + 1;
1261 if (name_len > 256) 1257 if (name_len > 256)
1262 { 1258 {
@@ -1307,9 +1303,9 @@ GNUNET_NAMESTORE_record_create (struct GNUNET_NAMESTORE_Handle *h,
1307 memcpy (rd_tmp, rd_ser, rd_ser_len); 1303 memcpy (rd_tmp, rd_ser, rd_ser_len);
1308 GNUNET_free (pkey_enc); 1304 GNUNET_free (pkey_enc);
1309 1305
1310 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1306 LOG (GNUNET_ERROR_TYPE_DEBUG,
1311 "Sending `%s' message for name `%s' with size %u\n", 1307 "Sending `%s' message for name `%s' with size %u\n",
1312 "NAMESTORE_RECORD_CREATE", name, msg_size); 1308 "NAMESTORE_RECORD_CREATE", name, msg_size);
1313 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe); 1309 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe);
1314 do_transmit(h); 1310 do_transmit(h);
1315 return qe; 1311 return qe;
@@ -1353,14 +1349,14 @@ GNUNET_NAMESTORE_record_remove (struct GNUNET_NAMESTORE_Handle *h,
1353 1349
1354 GNUNET_assert (NULL != h); 1350 GNUNET_assert (NULL != h);
1355 if (NULL != rd) 1351 if (NULL != rd)
1356 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1352 LOG (GNUNET_ERROR_TYPE_DEBUG,
1357 "Removing record of type %u under name `%s'\n", 1353 "Removing record of type %u under name `%s'\n",
1358 rd->record_type, 1354 rd->record_type,
1359 name); 1355 name);
1360 else 1356 else
1361 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1357 LOG (GNUNET_ERROR_TYPE_DEBUG,
1362 "Removing all records under name `%s'\n", 1358 "Removing all records under name `%s'\n",
1363 name); 1359 name);
1364 rid = get_op_id(h); 1360 rid = get_op_id(h);
1365 qe = GNUNET_malloc(sizeof (struct GNUNET_NAMESTORE_QueueEntry)); 1361 qe = GNUNET_malloc(sizeof (struct GNUNET_NAMESTORE_QueueEntry));
1366 qe->nsh = h; 1362 qe->nsh = h;
@@ -1410,7 +1406,9 @@ GNUNET_NAMESTORE_record_remove (struct GNUNET_NAMESTORE_Handle *h,
1410 1406
1411 GNUNET_free (pkey_enc); 1407 GNUNET_free (pkey_enc);
1412 1408
1413 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for name `%s' with size %u\n", "NAMESTORE_RECORD_REMOVE", name, msg_size); 1409 LOG (GNUNET_ERROR_TYPE_DEBUG,
1410 "Sending `%s' message for name `%s' with size %u\n",
1411 "NAMESTORE_RECORD_REMOVE", name, msg_size);
1414 1412
1415 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe); 1413 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe);
1416 do_transmit(h); 1414 do_transmit(h);
@@ -1448,10 +1446,10 @@ GNUNET_NAMESTORE_lookup_record (struct GNUNET_NAMESTORE_Handle *h,
1448 GNUNET_assert (NULL != h); 1446 GNUNET_assert (NULL != h);
1449 GNUNET_assert (NULL != zone); 1447 GNUNET_assert (NULL != zone);
1450 GNUNET_assert (NULL != name); 1448 GNUNET_assert (NULL != name);
1451 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1449 LOG (GNUNET_ERROR_TYPE_DEBUG,
1452 "Looking for record of type %u under name `%s'\n", 1450 "Looking for record of type %u under name `%s'\n",
1453 record_type, 1451 record_type,
1454 name); 1452 name);
1455 1453
1456 name_len = strlen (name) + 1; 1454 name_len = strlen (name) + 1;
1457 if ((name_len == 0) || (name_len > 256)) 1455 if ((name_len == 0) || (name_len > 256))
@@ -1485,7 +1483,8 @@ GNUNET_NAMESTORE_lookup_record (struct GNUNET_NAMESTORE_Handle *h,
1485 msg->zone = *zone; 1483 msg->zone = *zone;
1486 memcpy (&msg[1], name, name_len); 1484 memcpy (&msg[1], name, name_len);
1487 1485
1488 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for name `%s'\n", "NAMESTORE_LOOKUP_NAME", name); 1486 LOG (GNUNET_ERROR_TYPE_DEBUG,
1487 "Sending `%s' message for name `%s'\n", "NAMESTORE_LOOKUP_NAME", name);
1489 1488
1490 /* transmit message */ 1489 /* transmit message */
1491 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe); 1490 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe);
@@ -1547,10 +1546,11 @@ GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h,
1547 msg->value_zone = *value_zone; 1546 msg->value_zone = *value_zone;
1548 1547
1549 char * z_tmp = GNUNET_strdup (GNUNET_short_h2s (zone)); 1548 char * z_tmp = GNUNET_strdup (GNUNET_short_h2s (zone));
1550 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for zone `%s' in zone `%s'\n", 1549 LOG (GNUNET_ERROR_TYPE_DEBUG,
1551 "NAMESTORE_ZONE_TO_NAME", 1550 "Sending `%s' message for zone `%s' in zone `%s'\n",
1552 z_tmp, 1551 "NAMESTORE_ZONE_TO_NAME",
1553 GNUNET_short_h2s (value_zone)); 1552 z_tmp,
1553 GNUNET_short_h2s (value_zone));
1554 GNUNET_free (z_tmp); 1554 GNUNET_free (z_tmp);
1555 1555
1556 /* transmit message */ 1556 /* transmit message */
@@ -1627,12 +1627,15 @@ GNUNET_NAMESTORE_zone_iteration_start (struct GNUNET_NAMESTORE_Handle *h,
1627 msg->gns_header.r_id = htonl (rid); 1627 msg->gns_header.r_id = htonl (rid);
1628 if (NULL != zone) 1628 if (NULL != zone)
1629 { 1629 {
1630 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for zone `%s'\n", "ZONE_ITERATION_START", GNUNET_short_h2s(zone)); 1630 LOG (GNUNET_ERROR_TYPE_DEBUG,
1631 "Sending `%s' message for zone `%s'\n",
1632 "ZONE_ITERATION_START", GNUNET_short_h2s(zone));
1631 msg->zone = *zone; 1633 msg->zone = *zone;
1632 } 1634 }
1633 else 1635 else
1634 { 1636 {
1635 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for all zones\n", "ZONE_ITERATION_START"); 1637 LOG (GNUNET_ERROR_TYPE_DEBUG,
1638 "Sending `%s' message for all zones\n", "ZONE_ITERATION_START");
1636 memset (&msg->zone, '\0', sizeof (msg->zone)); 1639 memset (&msg->zone, '\0', sizeof (msg->zone));
1637 } 1640 }
1638 msg->must_have_flags = ntohs (must_have_flags); 1641 msg->must_have_flags = ntohs (must_have_flags);
@@ -1684,7 +1687,7 @@ GNUNET_NAMESTORE_zone_iterator_next (struct GNUNET_NAMESTORE_ZoneIterator *it)
1684 msg->gns_header.header.size = htons (msg_size); 1687 msg->gns_header.header.size = htons (msg_size);
1685 msg->gns_header.r_id = htonl (it->op_id); 1688 msg->gns_header.r_id = htonl (it->op_id);
1686 1689
1687 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message\n", "ZONE_ITERATION_NEXT"); 1690 LOG (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message\n", "ZONE_ITERATION_NEXT");
1688 1691
1689 /* transmit message */ 1692 /* transmit message */
1690 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe); 1693 GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe);