diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-24 14:11:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-24 14:11:17 +0000 |
commit | 6e03d509075d2cd38fabab6568b4c2bf2451505e (patch) | |
tree | 245379e96866662db100eb35c75be1206f1f661b /src/ats/perf_ats_solver.c | |
parent | c77bdc9b0fec7ce8201c5f3f5c915485abaf2dcd (diff) | |
download | gnunet-6e03d509075d2cd38fabab6568b4c2bf2451505e.tar.gz gnunet-6e03d509075d2cd38fabab6568b4c2bf2451505e.zip |
-fixing misc format strings
Diffstat (limited to 'src/ats/perf_ats_solver.c')
-rw-r--r-- | src/ats/perf_ats_solver.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/ats/perf_ats_solver.c b/src/ats/perf_ats_solver.c index 92dfcc0c8..2221ea824 100644 --- a/src/ats/perf_ats_solver.c +++ b/src/ats/perf_ats_solver.c | |||
@@ -291,25 +291,26 @@ perf_update_address (struct ATS_Address *cur) | |||
291 | } | 291 | } |
292 | 292 | ||
293 | 293 | ||
294 | |||
295 | static void | 294 | static void |
296 | bandwidth_changed_cb (void *cls, struct ATS_Address *address) | 295 | bandwidth_changed_cb (void *cls, |
296 | struct ATS_Address *address) | ||
297 | { | 297 | { |
298 | if (0 == ntohl(address->assigned_bw_out.value__) && | 298 | if ( (0 == ntohl (address->assigned_bw_out.value__)) && |
299 | 0 == ntohl(address->assigned_bw_in.value__)) | 299 | (0 == ntohl (address->assigned_bw_in.value__)) ) |
300 | return; | 300 | return; |
301 | 301 | ||
302 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | 302 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
303 | "Bandwidth changed addresses %s %p to %lu Bps out / %lu Bps in\n", | 303 | "Bandwidth changed addresses %s %p to %u Bps out / %u Bps in\n", |
304 | GNUNET_i2s (&address->peer), | 304 | GNUNET_i2s (&address->peer), |
305 | address, | 305 | address, |
306 | ntohl(address->assigned_bw_out.value__), | 306 | (unsigned int) ntohl (address->assigned_bw_out.value__), |
307 | ntohl(address->assigned_bw_in.value__)); | 307 | (unsigned int) ntohl (address->assigned_bw_in.value__)); |
308 | if (GNUNET_YES == ph.bulk_running) | 308 | if (GNUNET_YES == ph.bulk_running) |
309 | GNUNET_break (0); | 309 | GNUNET_break (0); |
310 | return; | 310 | return; |
311 | } | 311 | } |
312 | 312 | ||
313 | |||
313 | const double * | 314 | const double * |
314 | get_preferences_cb (void *cls, const struct GNUNET_PeerIdentity *id) | 315 | get_preferences_cb (void *cls, const struct GNUNET_PeerIdentity *id) |
315 | { | 316 | { |