diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-12 09:42:13 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-12 09:42:13 +0000 |
commit | cb32d6369ef9b9c4a4a9adc3391dff3355da9222 (patch) | |
tree | 6699cfe86806f326eb39a13b6e8ba2542a090b78 /src/ats/gnunet-service-ats_addresses.c | |
parent | 3e151594c5d33b5988a2b0287b93df6e896e1119 (diff) | |
download | gnunet-cb32d6369ef9b9c4a4a9adc3391dff3355da9222.tar.gz gnunet-cb32d6369ef9b9c4a4a9adc3391dff3355da9222.zip |
remove not required assignments
changes to log level
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.c')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 073530c22..d3909be3d 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -775,7 +775,7 @@ GAS_addresses_add (struct GAS_Addresses_Handle *handle, | |||
775 | uint32_t previous_session; | 775 | uint32_t previous_session; |
776 | int c1; | 776 | int c1; |
777 | 777 | ||
778 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 778 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
779 | "Received `%s' for peer `%s'\n", | 779 | "Received `%s' for peer `%s'\n", |
780 | "ADDRESS ADD", | 780 | "ADDRESS ADD", |
781 | GNUNET_i2s (peer)); | 781 | GNUNET_i2s (peer)); |
@@ -1277,7 +1277,7 @@ GAS_addresses_request_address (struct GAS_Addresses_Handle *handle, | |||
1277 | struct GAS_Addresses_Suggestion_Requests *cur = handle->r_head; | 1277 | struct GAS_Addresses_Suggestion_Requests *cur = handle->r_head; |
1278 | struct ATS_Address *aa; | 1278 | struct ATS_Address *aa; |
1279 | 1279 | ||
1280 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1280 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1281 | "Received `%s' for peer `%s'\n", | 1281 | "Received `%s' for peer `%s'\n", |
1282 | "REQUEST ADDRESS", | 1282 | "REQUEST ADDRESS", |
1283 | GNUNET_i2s (peer)); | 1283 | GNUNET_i2s (peer)); |
@@ -1652,7 +1652,7 @@ bandwidth_changed_cb (void *cls, struct ATS_Address *address) | |||
1652 | GNUNET_assert (handle != NULL); | 1652 | GNUNET_assert (handle != NULL); |
1653 | GNUNET_assert (address != NULL); | 1653 | GNUNET_assert (address != NULL); |
1654 | 1654 | ||
1655 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Bandwidth assignment changed for peer %s \n", GNUNET_i2s(&address->peer)); | 1655 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Bandwidth assignment changed for peer %s \n", GNUNET_i2s(&address->peer)); |
1656 | 1656 | ||
1657 | /* Notify performance clients about changes to address */ | 1657 | /* Notify performance clients about changes to address */ |
1658 | GAS_performance_notify_all_clients (&address->peer, | 1658 | GAS_performance_notify_all_clients (&address->peer, |
@@ -1671,12 +1671,12 @@ bandwidth_changed_cb (void *cls, struct ATS_Address *address) | |||
1671 | } | 1671 | } |
1672 | if (NULL == cur) | 1672 | if (NULL == cur) |
1673 | { | 1673 | { |
1674 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1674 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1675 | "Nobody is interested in peer `%s' :(\n",GNUNET_i2s (&address->peer)); | 1675 | "Nobody is interested in peer `%s' :(\n",GNUNET_i2s (&address->peer)); |
1676 | return; | 1676 | return; |
1677 | } | 1677 | } |
1678 | 1678 | ||
1679 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1679 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1680 | "Sending bandwidth update for peer `%s'\n",GNUNET_i2s (&address->peer)); | 1680 | "Sending bandwidth update for peer `%s'\n",GNUNET_i2s (&address->peer)); |
1681 | 1681 | ||
1682 | /* *Notify scheduling clients about suggestion */ | 1682 | /* *Notify scheduling clients about suggestion */ |
@@ -1759,7 +1759,6 @@ GAS_addresses_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1759 | case MODE_MLP: | 1759 | case MODE_MLP: |
1760 | /* Init the MLP solver with default values */ | 1760 | /* Init the MLP solver with default values */ |
1761 | #if HAVE_LIBGLPK | 1761 | #if HAVE_LIBGLPK |
1762 | ah->ats_mode = MODE_MLP; | ||
1763 | ah->s_init = &GAS_mlp_init; | 1762 | ah->s_init = &GAS_mlp_init; |
1764 | ah->s_add = &GAS_mlp_address_add; | 1763 | ah->s_add = &GAS_mlp_address_add; |
1765 | ah->s_address_update_property = &GAS_mlp_address_property_changed; | 1764 | ah->s_address_update_property = &GAS_mlp_address_property_changed; |
@@ -1781,7 +1780,6 @@ GAS_addresses_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1781 | break; | 1780 | break; |
1782 | case MODE_PROPORTIONAL: | 1781 | case MODE_PROPORTIONAL: |
1783 | /* Init the proportional solver with default values */ | 1782 | /* Init the proportional solver with default values */ |
1784 | ah->ats_mode = MODE_PROPORTIONAL; | ||
1785 | ah->s_init = &GAS_proportional_init; | 1783 | ah->s_init = &GAS_proportional_init; |
1786 | ah->s_add = &GAS_proportional_address_add; | 1784 | ah->s_add = &GAS_proportional_address_add; |
1787 | ah->s_address_update_property = &GAS_proportional_address_property_changed; | 1785 | ah->s_address_update_property = &GAS_proportional_address_property_changed; |