diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-12 13:25:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-12 13:25:26 +0000 |
commit | ae541871fe74151cc3755efa74b668ada4fcb370 (patch) | |
tree | cecf1ca80d7c73033c51b56332642f6d3706d5a2 /src/ats/ats_api.c | |
parent | 4258b3b6009218487de37ae1b2334c9acc35dc4e (diff) | |
download | gnunet-ae541871fe74151cc3755efa74b668ada4fcb370.tar.gz gnunet-ae541871fe74151cc3755efa74b668ada4fcb370.zip |
log
Diffstat (limited to 'src/ats/ats_api.c')
-rw-r--r-- | src/ats/ats_api.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/ats/ats_api.c b/src/ats/ats_api.c index 828b163b3..2025ff538 100644 --- a/src/ats/ats_api.c +++ b/src/ats/ats_api.c | |||
@@ -142,12 +142,11 @@ set_bw_connections (void *cls, const GNUNET_HashCode * key, void *value) | |||
142 | ar->bandwidth_out = sbc->bw_out; | 142 | ar->bandwidth_out = sbc->bw_out; |
143 | GNUNET_BANDWIDTH_tracker_update_quota (&ar->available_recv_window, | 143 | GNUNET_BANDWIDTH_tracker_update_quota (&ar->available_recv_window, |
144 | ar->bandwidth_in); | 144 | ar->bandwidth_in); |
145 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, | 145 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
146 | "ats-api", | 146 | "Bandwidth assigned to peer %s is i:%u/o:%u bytes/s\n", |
147 | "Bandwidth assigned to peer %s is i:%u/o:%u bytes/s\n", | 147 | GNUNET_i2s ((const struct GNUNET_PeerIdentity *) key), |
148 | GNUNET_i2s ((const struct GNUNET_PeerIdentity *) key), | 148 | ntohl (ar->bandwidth_in.value__), |
149 | ntohl (ar->bandwidth_in.value__), | 149 | ntohl (ar->bandwidth_out.value__)); |
150 | ntohl (ar->bandwidth_out.value__)); | ||
151 | if (NULL != sbc->atc->alloc_cb) | 150 | if (NULL != sbc->atc->alloc_cb) |
152 | sbc->atc->alloc_cb (sbc->atc->alloc_cb_cls, | 151 | sbc->atc->alloc_cb (sbc->atc->alloc_cb_cls, |
153 | (const struct GNUNET_PeerIdentity *) key, | 152 | (const struct GNUNET_PeerIdentity *) key, |
@@ -267,7 +266,7 @@ GNUNET_ATS_suggest_address (struct GNUNET_ATS_Handle *atc, | |||
267 | struct GNUNET_ATS_SuggestionContext *asc; | 266 | struct GNUNET_ATS_SuggestionContext *asc; |
268 | 267 | ||
269 | #if DEBUG_ATS | 268 | #if DEBUG_ATS |
270 | LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", | 269 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
271 | "Looking up suggested address for peer `%s'\n", GNUNET_i2s (peer)); | 270 | "Looking up suggested address for peer `%s'\n", GNUNET_i2s (peer)); |
272 | #endif | 271 | #endif |
273 | asc = GNUNET_malloc (sizeof (struct GNUNET_ATS_SuggestionContext)); | 272 | asc = GNUNET_malloc (sizeof (struct GNUNET_ATS_SuggestionContext)); |
@@ -423,7 +422,7 @@ update_session (void *cls, const GNUNET_HashCode * key, void *value) | |||
423 | 422 | ||
424 | 423 | ||
425 | #if DEBUG_ATS | 424 | #if DEBUG_ATS |
426 | LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", | 425 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
427 | "Updating session for peer `%s' plugin `%s'\n", GNUNET_h2s (key), | 426 | "Updating session for peer `%s' plugin `%s'\n", GNUNET_h2s (key), |
428 | arold->plugin_name); | 427 | arold->plugin_name); |
429 | #endif | 428 | #endif |
@@ -746,7 +745,7 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc, | |||
746 | struct UpdateSessionContext usc; | 745 | struct UpdateSessionContext usc; |
747 | 746 | ||
748 | #if DEBUG_ATS | 747 | #if DEBUG_ATS |
749 | LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", | 748 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
750 | "Updating address for peer `%s', plugin `%s'\n", GNUNET_i2s (peer), | 749 | "Updating address for peer `%s', plugin `%s'\n", GNUNET_i2s (peer), |
751 | plugin_name); | 750 | plugin_name); |
752 | #endif | 751 | #endif |
@@ -761,7 +760,7 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc, | |||
761 | return; | 760 | return; |
762 | } | 761 | } |
763 | #if DEBUG_ATS | 762 | #if DEBUG_ATS |
764 | LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", | 763 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
765 | "Adding new address for peer `%s', plugin `%s'\n", GNUNET_i2s (peer), | 764 | "Adding new address for peer `%s', plugin `%s'\n", GNUNET_i2s (peer), |
766 | plugin_name); | 765 | plugin_name); |
767 | #endif | 766 | #endif |