From ae541871fe74151cc3755efa74b668ada4fcb370 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 12 Oct 2011 13:25:26 +0000 Subject: [PATCH] log --- src/ats/ats_api.c | 19 +++++++++---------- 1 file 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) ar->bandwidth_out = sbc->bw_out; GNUNET_BANDWIDTH_tracker_update_quota (&ar->available_recv_window, ar->bandwidth_in); - GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, - "ats-api", - "Bandwidth assigned to peer %s is i:%u/o:%u bytes/s\n", - GNUNET_i2s ((const struct GNUNET_PeerIdentity *) key), - ntohl (ar->bandwidth_in.value__), - ntohl (ar->bandwidth_out.value__)); + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Bandwidth assigned to peer %s is i:%u/o:%u bytes/s\n", + GNUNET_i2s ((const struct GNUNET_PeerIdentity *) key), + ntohl (ar->bandwidth_in.value__), + ntohl (ar->bandwidth_out.value__)); if (NULL != sbc->atc->alloc_cb) sbc->atc->alloc_cb (sbc->atc->alloc_cb_cls, (const struct GNUNET_PeerIdentity *) key, @@ -267,7 +266,7 @@ GNUNET_ATS_suggest_address (struct GNUNET_ATS_Handle *atc, struct GNUNET_ATS_SuggestionContext *asc; #if DEBUG_ATS - LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", + LOG (GNUNET_ERROR_TYPE_DEBUG, "Looking up suggested address for peer `%s'\n", GNUNET_i2s (peer)); #endif asc = GNUNET_malloc (sizeof (struct GNUNET_ATS_SuggestionContext)); @@ -423,7 +422,7 @@ update_session (void *cls, const GNUNET_HashCode * key, void *value) #if DEBUG_ATS - LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", + LOG (GNUNET_ERROR_TYPE_DEBUG, "Updating session for peer `%s' plugin `%s'\n", GNUNET_h2s (key), arold->plugin_name); #endif @@ -746,7 +745,7 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc, struct UpdateSessionContext usc; #if DEBUG_ATS - LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", + LOG (GNUNET_ERROR_TYPE_DEBUG, "Updating address for peer `%s', plugin `%s'\n", GNUNET_i2s (peer), plugin_name); #endif @@ -761,7 +760,7 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc, return; } #if DEBUG_ATS - LOG (GNUNET_ERROR_TYPE_DEBUG, "ats-api", + LOG (GNUNET_ERROR_TYPE_DEBUG, "Adding new address for peer `%s', plugin `%s'\n", GNUNET_i2s (peer), plugin_name); #endif -- 2.25.1