diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-07-23 05:47:23 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-07-23 05:47:23 +0000 |
commit | 1607ea151f1db856ea07607eb155b4d172b11d1b (patch) | |
tree | b82964d87188ae0bfe084d1681c2c308985d941e /src/cadet/gnunet-service-cadet_channel.c | |
parent | b6e0aac51cd54c83eaefaff1f4c7145732127393 (diff) | |
download | gnunet-1607ea151f1db856ea07607eb155b4d172b11d1b.tar.gz gnunet-1607ea151f1db856ea07607eb155b4d172b11d1b.zip |
- fix logging
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index 0aa2b03db..78ce61ff4 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -1519,14 +1519,13 @@ GCCH_send_data_ack (struct CadetChannel *ch, int fwd) | |||
1519 | 1519 | ||
1520 | rel = fwd ? ch->dest_rel : ch->root_rel; | 1520 | rel = fwd ? ch->dest_rel : ch->root_rel; |
1521 | ack = rel->mid_recv - 1; | 1521 | ack = rel->mid_recv - 1; |
1522 | LOG (GNUNET_ERROR_TYPE_INFO, "===> DATA_ACK for %u\n", ack); | ||
1523 | 1522 | ||
1524 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_DATA_ACK); | 1523 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_DATA_ACK); |
1525 | msg.header.size = htons (sizeof (msg)); | 1524 | msg.header.size = htons (sizeof (msg)); |
1526 | msg.chid = htonl (ch->gid); | 1525 | msg.chid = htonl (ch->gid); |
1527 | msg.mid = htonl (ack); | 1526 | msg.mid = htonl (ack); |
1528 | 1527 | ||
1529 | msg.futures = 0; | 1528 | msg.futures = 0LL; |
1530 | for (copy = rel->head_recv; NULL != copy; copy = copy->next) | 1529 | for (copy = rel->head_recv; NULL != copy; copy = copy->next) |
1531 | { | 1530 | { |
1532 | if (copy->type != GNUNET_MESSAGE_TYPE_CADET_DATA) | 1531 | if (copy->type != GNUNET_MESSAGE_TYPE_CADET_DATA) |
@@ -1544,7 +1543,8 @@ GCCH_send_data_ack (struct CadetChannel *ch, int fwd) | |||
1544 | " setting bit for %u (delta %u) (%llX) -> %llX\n", | 1543 | " setting bit for %u (delta %u) (%llX) -> %llX\n", |
1545 | copy->mid, delta, mask, msg.futures); | 1544 | copy->mid, delta, mask, msg.futures); |
1546 | } | 1545 | } |
1547 | LOG (GNUNET_ERROR_TYPE_DEBUG, " final futures: %llX\n", ack, msg.futures); | 1546 | LOG (GNUNET_ERROR_TYPE_INFO, "===> DATA_ACK for %u + %llX\n", |
1547 | ack, msg.futures); | ||
1548 | 1548 | ||
1549 | GCCH_send_prebuilt_message (&msg.header, ch, !fwd, NULL); | 1549 | GCCH_send_prebuilt_message (&msg.header, ch, !fwd, NULL); |
1550 | LOG (GNUNET_ERROR_TYPE_DEBUG, "send_data_ack END\n"); | 1550 | LOG (GNUNET_ERROR_TYPE_DEBUG, "send_data_ack END\n"); |
@@ -2015,7 +2015,7 @@ GCCH_handle_data_ack (struct CadetChannel *ch, | |||
2015 | } | 2015 | } |
2016 | 2016 | ||
2017 | ack = ntohl (msg->mid); | 2017 | ack = ntohl (msg->mid); |
2018 | LOG (GNUNET_ERROR_TYPE_INFO, "<=== %s ACK %u + %X\n", | 2018 | LOG (GNUNET_ERROR_TYPE_INFO, "<=== %s ACK %u + %llX\n", |
2019 | GC_f2s (fwd), ack, msg->futures); | 2019 | GC_f2s (fwd), ack, msg->futures); |
2020 | 2020 | ||
2021 | if (GNUNET_YES == fwd) | 2021 | if (GNUNET_YES == fwd) |