diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-01 22:44:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-01 22:44:28 +0000 |
commit | bdef044d942a5f75f698bef989a1e768e79d2976 (patch) | |
tree | 59ef3e1b4158bb1ab76af5d88df503a69f5ab3be /src/transport/transport_api.c | |
parent | e9cf3782a3c5c2bcf6bdeff58b8a3536585791eb (diff) | |
download | gnunet-bdef044d942a5f75f698bef989a1e768e79d2976.tar.gz gnunet-bdef044d942a5f75f698bef989a1e768e79d2976.zip |
fixes from LRN for DEBUG code
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index ad81940ae..5410aca8a 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -471,7 +471,7 @@ schedule_peer_transmission (struct GNUNET_TRANSPORT_Handle *h) | |||
471 | #if DEBUG_TRANSPORT | 471 | #if DEBUG_TRANSPORT |
472 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 472 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
473 | "Would need %llu ms before bandwidth is available for delivery to `%4s', that is too long. Signaling timeout.\n", | 473 | "Would need %llu ms before bandwidth is available for delivery to `%4s', that is too long. Signaling timeout.\n", |
474 | duration.abs_value, | 474 | duration.rel_value, |
475 | GNUNET_i2s (&n->id)); | 475 | GNUNET_i2s (&n->id)); |
476 | #endif | 476 | #endif |
477 | if (th->notify_delay_task != GNUNET_SCHEDULER_NO_TASK) | 477 | if (th->notify_delay_task != GNUNET_SCHEDULER_NO_TASK) |
@@ -492,7 +492,7 @@ schedule_peer_transmission (struct GNUNET_TRANSPORT_Handle *h) | |||
492 | (unsigned int) n->out_tracker.available_bytes_per_s__, | 492 | (unsigned int) n->out_tracker.available_bytes_per_s__, |
493 | (unsigned int) th->notify_size - sizeof (struct OutboundMessage), | 493 | (unsigned int) th->notify_size - sizeof (struct OutboundMessage), |
494 | GNUNET_i2s (&n->id), | 494 | GNUNET_i2s (&n->id), |
495 | duration.abs_value); | 495 | duration.rel_value); |
496 | #endif | 496 | #endif |
497 | retry_time = GNUNET_TIME_relative_min (retry_time, | 497 | retry_time = GNUNET_TIME_relative_min (retry_time, |
498 | duration); | 498 | duration); |
@@ -608,7 +608,7 @@ transport_notify_ready (void *cls, size_t size, void *buf) | |||
608 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 608 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
609 | "Message of %u bytes with timeout %llums constructed for `%4s'\n", | 609 | "Message of %u bytes with timeout %llums constructed for `%4s'\n", |
610 | (unsigned int) mret, | 610 | (unsigned int) mret, |
611 | (unsigned long long) GNUNET_TIME_absolute_get_remaining (th->timeout).abs_value, | 611 | (unsigned long long) GNUNET_TIME_absolute_get_remaining (th->timeout).rel_value, |
612 | GNUNET_i2s (&n->id)); | 612 | GNUNET_i2s (&n->id)); |
613 | #endif | 613 | #endif |
614 | if (mret != 0) | 614 | if (mret != 0) |
@@ -755,7 +755,7 @@ schedule_control_transmit (struct GNUNET_TRANSPORT_Handle *h, | |||
755 | #if DEBUG_TRANSPORT | 755 | #if DEBUG_TRANSPORT |
756 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 756 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
757 | "Control transmit of %u bytes within %llums requested\n", | 757 | "Control transmit of %u bytes within %llums requested\n", |
758 | size, (unsigned long long) timeout.abs_value); | 758 | size, (unsigned long long) timeout.rel_value); |
759 | #endif | 759 | #endif |
760 | th = GNUNET_malloc (sizeof (struct ControlMessage)); | 760 | th = GNUNET_malloc (sizeof (struct ControlMessage)); |
761 | th->h = h; | 761 | th->h = h; |
@@ -868,11 +868,11 @@ GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle, | |||
868 | if (n != NULL) | 868 | if (n != NULL) |
869 | { | 869 | { |
870 | #if DEBUG_TRANSPORT | 870 | #if DEBUG_TRANSPORT |
871 | if (ntohl (quota_out.rel_value__) != n->out_tracker.available_bytes_per_s__) | 871 | if (ntohl (quota_out.value__) != n->out_tracker.available_bytes_per_s__) |
872 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 872 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
873 | "Quota changed from %u to %u for peer `%s'\n", | 873 | "Quota changed from %u to %u for peer `%s'\n", |
874 | (unsigned int) n->out_tracker.available_bytes_per_s__, | 874 | (unsigned int) n->out_tracker.available_bytes_per_s__, |
875 | (unsigned int) ntohl (quota_out.rel_value__), | 875 | (unsigned int) ntohl (quota_out.value__), |
876 | GNUNET_i2s (target)); | 876 | GNUNET_i2s (target)); |
877 | else | 877 | else |
878 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 878 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -888,7 +888,7 @@ GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle, | |||
888 | #if DEBUG_TRANSPORT | 888 | #if DEBUG_TRANSPORT |
889 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 889 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
890 | "Quota changed to %u for peer `%s', but I have no such neighbour!\n", | 890 | "Quota changed to %u for peer `%s', but I have no such neighbour!\n", |
891 | (unsigned int) ntohl (quota_out.rel_value__), | 891 | (unsigned int) ntohl (quota_out.value__), |
892 | GNUNET_i2s (target)); | 892 | GNUNET_i2s (target)); |
893 | #endif | 893 | #endif |
894 | } | 894 | } |
@@ -1235,7 +1235,7 @@ schedule_reconnect (struct GNUNET_TRANSPORT_Handle *h) | |||
1235 | #if DEBUG_TRANSPORT | 1235 | #if DEBUG_TRANSPORT |
1236 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1236 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1237 | "Scheduling task to reconnect to transport service in %llu ms.\n", | 1237 | "Scheduling task to reconnect to transport service in %llu ms.\n", |
1238 | h->reconnect_delay.abs_value); | 1238 | h->reconnect_delay.rel_value); |
1239 | #endif | 1239 | #endif |
1240 | GNUNET_assert (h->client == NULL); | 1240 | GNUNET_assert (h->client == NULL); |
1241 | GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK); | 1241 | GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK); |
@@ -1802,7 +1802,7 @@ GNUNET_TRANSPORT_notify_transmit_ready (struct GNUNET_TRANSPORT_Handle | |||
1802 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1802 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1803 | "Asking transport service for transmission of %u bytes to peer `%4s' within %llu ms.\n", | 1803 | "Asking transport service for transmission of %u bytes to peer `%4s' within %llu ms.\n", |
1804 | size, GNUNET_i2s (target), | 1804 | size, GNUNET_i2s (target), |
1805 | (unsigned long long) timeout.abs_value); | 1805 | (unsigned long long) timeout.rel_value); |
1806 | #endif | 1806 | #endif |
1807 | n = neighbour_find (handle, target); | 1807 | n = neighbour_find (handle, target); |
1808 | if (n == NULL) | 1808 | if (n == NULL) |