aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arm/gnunet-service-arm.c5
-rw-r--r--src/datacache/perf_datacache.c10
-rw-r--r--src/datacache/plugin_datacache_sqlite.c4
-rw-r--r--src/hostlist/hostlist-client.c63
-rw-r--r--src/hostlist/hostlist-server.c6
-rw-r--r--src/nat/nat.c6
-rw-r--r--src/util/bandwidth.c7
-rw-r--r--src/util/client.c13
-rw-r--r--src/util/scheduler.c8
-rw-r--r--src/util/server.c6
-rw-r--r--src/util/test_crypto_ksk.c13
-rw-r--r--src/util/test_crypto_rsa.c19
12 files changed, 74 insertions, 86 deletions
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c
index 21e86c770..c860a810c 100644
--- a/src/arm/gnunet-service-arm.c
+++ b/src/arm/gnunet-service-arm.c
@@ -903,8 +903,9 @@ delayed_restart_task (void *cls,
903 } 903 }
904 if (lowestRestartDelay.rel_value != GNUNET_TIME_UNIT_FOREVER_REL.rel_value) 904 if (lowestRestartDelay.rel_value != GNUNET_TIME_UNIT_FOREVER_REL.rel_value)
905 { 905 {
906 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Will restart process in %llums\n", 906 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
907 (unsigned long long) lowestRestartDelay.rel_value); 907 "Will restart process in %s\n",
908 GNUNET_STRINGS_relative_time_to_string (lowestRestartDelay, GNUNET_YES));
908 child_restart_task = 909 child_restart_task =
909 GNUNET_SCHEDULER_add_delayed_with_priority (lowestRestartDelay, 910 GNUNET_SCHEDULER_add_delayed_with_priority (lowestRestartDelay,
910 GNUNET_SCHEDULER_PRIORITY_IDLE, 911 GNUNET_SCHEDULER_PRIORITY_IDLE,
diff --git a/src/datacache/perf_datacache.c b/src/datacache/perf_datacache.c
index fd3891116..10289ec68 100644
--- a/src/datacache/perf_datacache.c
+++ b/src/datacache/perf_datacache.c
@@ -88,9 +88,8 @@ run (void *cls, char *const *args, const char *cfgfile,
88 k = n; 88 k = n;
89 } 89 }
90 FPRINTF (stderr, "%s", "\n"); 90 FPRINTF (stderr, "%s", "\n");
91 FPRINTF (stdout, "Stored %u items in %llums\n", ITERATIONS, 91 FPRINTF (stdout, "Stored %u items in %s\n", ITERATIONS,
92 (unsigned long long) 92 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES));
93 GNUNET_TIME_absolute_get_duration (start).rel_value);
94 GNUNET_snprintf (gstr, sizeof (gstr), "DATACACHE-%s", plugin_name); 93 GNUNET_snprintf (gstr, sizeof (gstr), "DATACACHE-%s", plugin_name);
95 GAUGER (gstr, "Time to PUT item in datacache", 94 GAUGER (gstr, "Time to PUT item in datacache",
96 GNUNET_TIME_absolute_get_duration (start).rel_value / ITERATIONS, 95 GNUNET_TIME_absolute_get_duration (start).rel_value / ITERATIONS,
@@ -107,10 +106,9 @@ run (void *cls, char *const *args, const char *cfgfile,
107 } 106 }
108 FPRINTF (stderr, "%s", "\n"); 107 FPRINTF (stderr, "%s", "\n");
109 FPRINTF (stdout, 108 FPRINTF (stdout,
110 "Found %u/%u items in %llums (%u were deleted during storage processing)\n", 109 "Found %u/%u items in %s (%u were deleted during storage processing)\n",
111 found, ITERATIONS, 110 found, ITERATIONS,
112 (unsigned long long) 111 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES),
113 GNUNET_TIME_absolute_get_duration (start).rel_value,
114 ITERATIONS - found); 112 ITERATIONS - found);
115 if (found > 0) 113 if (found > 0)
116 GAUGER (gstr, "Time to GET item from datacache", 114 GAUGER (gstr, "Time to GET item from datacache",
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index 26792e1fb..b51423de2 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -107,10 +107,10 @@ sqlite_plugin_put (void *cls, const struct GNUNET_HashCode * key, size_t size,
107 int64_t dval; 107 int64_t dval;
108 108
109 LOG (GNUNET_ERROR_TYPE_DEBUG, 109 LOG (GNUNET_ERROR_TYPE_DEBUG,
110 "Processing `%s' of %u bytes with key `%4s' and expiration %llums\n", 110 "Processing `%s' of %u bytes with key `%4s' and expiration %s\n",
111 "PUT", (unsigned int) size, GNUNET_h2s (key), 111 "PUT", (unsigned int) size, GNUNET_h2s (key),
112 (unsigned long long) 112 (unsigned long long)
113 GNUNET_TIME_absolute_get_remaining (discard_time).rel_value); 113 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_remaining (discard_time), GNUNET_YES));
114 dval = (int64_t) discard_time.abs_value; 114 dval = (int64_t) discard_time.abs_value;
115 if (dval < 0) 115 if (dval < 0)
116 dval = INT64_MAX; 116 dval = INT64_MAX;
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index e85c3cae7..69d7b873e 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -370,10 +370,8 @@ get_bootstrap_server ()
370 GNUNET_CONFIGURATION_get_value_string (cfg, "HOSTLIST", "SERVERS", 370 GNUNET_CONFIGURATION_get_value_string (cfg, "HOSTLIST", "SERVERS",
371 &servers)) 371 &servers))
372 { 372 {
373 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 373 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
374 _ 374 "hostlist", "SERVERS");
375 ("No `%s' specified in `%s' configuration, will not bootstrap.\n"),
376 "SERVERS", "HOSTLIST");
377 return NULL; 375 return NULL;
378 } 376 }
379 377
@@ -391,10 +389,8 @@ get_bootstrap_server ()
391 } 389 }
392 if (urls == 0) 390 if (urls == 0)
393 { 391 {
394 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 392 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
395 _ 393 "hostlist", "SERVERS");
396 ("No `%s' specified in `%s' configuration, will not bootstrap.\n"),
397 "SERVERS", "HOSTLIST");
398 GNUNET_free (servers); 394 GNUNET_free (servers);
399 return NULL; 395 return NULL;
400 } 396 }
@@ -499,10 +495,10 @@ checked_add (uint64_t val1, uint64_t val2)
499 temp = val1 + val2; 495 temp = val1 + val2;
500 if (temp < val1) 496 if (temp < val1)
501 return maxv; 497 return maxv;
502 else 498 return temp;
503 return temp;
504} 499}
505 500
501
506/** 502/**
507 * Subtract val2 from val1 with underflow check 503 * Subtract val2 from val1 with underflow check
508 * @param val1 value 1 504 * @param val1 value 1
@@ -514,10 +510,10 @@ checked_sub (uint64_t val1, uint64_t val2)
514{ 510{
515 if (val1 <= val2) 511 if (val1 <= val2)
516 return 0; 512 return 0;
517 else 513 return (val1 - val2);
518 return (val1 - val2);
519} 514}
520 515
516
521/** 517/**
522 * Method to check if a URI is in hostlist linked list 518 * Method to check if a URI is in hostlist linked list
523 * @param uri uri to check 519 * @param uri uri to check
@@ -647,6 +643,7 @@ update_hostlist ()
647 stat_use_bootstrap = GNUNET_YES; 643 stat_use_bootstrap = GNUNET_YES;
648} 644}
649 645
646
650/** 647/**
651 * Clean up the state from the task that downloaded the 648 * Clean up the state from the task that downloaded the
652 * hostlist and schedule the next task. 649 * hostlist and schedule the next task.
@@ -998,6 +995,7 @@ task_download_dispatcher (void *cls,
998 } 995 }
999} 996}
1000 997
998
1001/** 999/**
1002 * Task that checks if we should try to download a hostlist. 1000 * Task that checks if we should try to download a hostlist.
1003 * If so, we initiate the download, otherwise we schedule 1001 * If so, we initiate the download, otherwise we schedule
@@ -1042,10 +1040,9 @@ task_check (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1042 once = 1; 1040 once = 1;
1043 } 1041 }
1044 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1042 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1045 _ 1043 _("Have %u/%u connections. Will consider downloading hostlist in %s\n"),
1046 ("Have %u/%u connections. Will consider downloading hostlist in %llums\n"),
1047 stat_connection_count, MIN_CONNECTIONS, 1044 stat_connection_count, MIN_CONNECTIONS,
1048 (unsigned long long) delay.rel_value); 1045 GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_YES));
1049 ti_check_download = GNUNET_SCHEDULER_add_delayed (delay, &task_check, NULL); 1046 ti_check_download = GNUNET_SCHEDULER_add_delayed (delay, &task_check, NULL);
1050} 1047}
1051 1048
@@ -1081,12 +1078,11 @@ task_hostlist_saving (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1081 ti_saving_task = GNUNET_SCHEDULER_NO_TASK; 1078 ti_saving_task = GNUNET_SCHEDULER_NO_TASK;
1082 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 1079 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
1083 return; 1080 return;
1084 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Scheduled saving of hostlists\n"));
1085 save_hostlist_file (GNUNET_NO); 1081 save_hostlist_file (GNUNET_NO);
1086 1082
1087 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1083 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1088 _("Hostlists will be saved to file again in %llums\n"), 1084 "Hostlists will be saved to file again in %s\n",
1089 (unsigned long long) SAVING_INTERVALL.rel_value); 1085 GNUNET_STRINGS_relative_time_to_string(SAVING_INTERVALL, GNUNET_YES));
1090 ti_saving_task = 1086 ti_saving_task =
1091 GNUNET_SCHEDULER_add_delayed (SAVING_INTERVALL, &task_hostlist_saving, 1087 GNUNET_SCHEDULER_add_delayed (SAVING_INTERVALL, &task_hostlist_saving,
1092 NULL); 1088 NULL);
@@ -1214,7 +1210,6 @@ handler_advertisement (void *cls, const struct GNUNET_PeerIdentity *peer,
1214} 1210}
1215 1211
1216 1212
1217
1218/** 1213/**
1219 * Continuation called by the statistics code once 1214 * Continuation called by the statistics code once
1220 * we go the stat. Initiates hostlist download scheduling. 1215 * we go the stat. Initiates hostlist download scheduling.
@@ -1238,13 +1233,14 @@ static int
1238process_stat (void *cls, const char *subsystem, const char *name, 1233process_stat (void *cls, const char *subsystem, const char *name,
1239 uint64_t value, int is_persistent) 1234 uint64_t value, int is_persistent)
1240{ 1235{
1241 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1242 _("Initial time between hostlist downloads is %llums\n"),
1243 (unsigned long long) value);
1244 hostlist_delay.rel_value = value; 1236 hostlist_delay.rel_value = value;
1237 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1238 "Initial time between hostlist downloads is %s\n",
1239 GNUNET_STRINGS_relative_time_to_string (hostlist_delay, GNUNET_YES));
1245 return GNUNET_OK; 1240 return GNUNET_OK;
1246} 1241}
1247 1242
1243
1248/** 1244/**
1249 * Method to load persistent hostlist file during hostlist client startup 1245 * Method to load persistent hostlist file during hostlist client startup
1250 */ 1246 */
@@ -1268,10 +1264,8 @@ load_hostlist_file ()
1268 GNUNET_CONFIGURATION_get_value_filename (cfg, "HOSTLIST", "HOSTLISTFILE", 1264 GNUNET_CONFIGURATION_get_value_filename (cfg, "HOSTLIST", "HOSTLISTFILE",
1269 &filename)) 1265 &filename))
1270 { 1266 {
1271 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 1267 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
1272 _ 1268 "hostlist", "HOSTLISTFILE");
1273 ("No `%s' specified in `%s' configuration, cannot load hostlists from file.\n"),
1274 "HOSTLISTFILE", "HOSTLIST");
1275 return; 1269 return;
1276 } 1270 }
1277 1271
@@ -1280,7 +1274,7 @@ load_hostlist_file ()
1280 if (GNUNET_NO == GNUNET_DISK_file_test (filename)) 1274 if (GNUNET_NO == GNUNET_DISK_file_test (filename))
1281 { 1275 {
1282 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1276 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1283 _("Hostlist file `%s' is not existing\n"), filename); 1277 _("Hostlist file `%s' does not exist\n"), filename);
1284 GNUNET_free (filename); 1278 GNUNET_free (filename);
1285 return; 1279 return;
1286 } 1280 }
@@ -1357,10 +1351,8 @@ save_hostlist_file (int shutdown)
1357 GNUNET_CONFIGURATION_get_value_filename (cfg, "HOSTLIST", "HOSTLISTFILE", 1351 GNUNET_CONFIGURATION_get_value_filename (cfg, "HOSTLIST", "HOSTLISTFILE",
1358 &filename)) 1352 &filename))
1359 { 1353 {
1360 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 1354 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
1361 _ 1355 "hostlist", "HOSTLISTFILE");
1362 ("No `%s' specified in `%s' configuration, cannot save hostlists to file.\n"),
1363 "HOSTLISTFILE", "HOSTLIST");
1364 return; 1356 return;
1365 } 1357 }
1366 if (GNUNET_SYSERR == GNUNET_DISK_directory_create_for_file (filename)) 1358 if (GNUNET_SYSERR == GNUNET_DISK_directory_create_for_file (filename))
@@ -1423,6 +1415,7 @@ save_hostlist_file (int shutdown)
1423 GNUNET_free (filename); 1415 GNUNET_free (filename);
1424} 1416}
1425 1417
1418
1426/** 1419/**
1427 * Start downloading hostlists from hostlist servers as necessary. 1420 * Start downloading hostlists from hostlist servers as necessary.
1428 */ 1421 */
@@ -1469,9 +1462,9 @@ GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
1469 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1462 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1470 _("Learning is enabled on this peer\n")); 1463 _("Learning is enabled on this peer\n"));
1471 load_hostlist_file (); 1464 load_hostlist_file ();
1472 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1465 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1473 _("Hostlists will be saved to file again in %llums\n"), 1466 "Hostlists will be saved to file again in %s\n",
1474 (unsigned long long) SAVING_INTERVALL.rel_value); 1467 GNUNET_STRINGS_relative_time_to_string (SAVING_INTERVALL, GNUNET_YES));
1475 ti_saving_task = 1468 ti_saving_task =
1476 GNUNET_SCHEDULER_add_delayed (SAVING_INTERVALL, &task_hostlist_saving, 1469 GNUNET_SCHEDULER_add_delayed (SAVING_INTERVALL, &task_hostlist_saving,
1477 NULL); 1470 NULL);
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index 0b82b7d1f..04da6e930 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -180,7 +180,7 @@ host_processor (void *cls, const struct GNUNET_PeerIdentity *peer,
180 { 180 {
181 GNUNET_assert (NULL == peer); 181 GNUNET_assert (NULL == peer);
182 pitr = NULL; 182 pitr = NULL;
183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 183 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
184 _("Error in communication with PEERINFO service: %s\n"), 184 _("Error in communication with PEERINFO service: %s\n"),
185 err_msg); 185 err_msg);
186 return; 186 return;
@@ -270,7 +270,7 @@ access_handler_callback (void *cls, struct MHD_Connection *connection,
270 if (NULL == *con_cls) 270 if (NULL == *con_cls)
271 { 271 {
272 (*con_cls) = &dummy; 272 (*con_cls) = &dummy;
273 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, _("Sending 100 CONTINUE reply\n")); 273 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending 100 CONTINUE reply\n");
274 return MHD_YES; /* send 100 continue */ 274 return MHD_YES; /* send 100 continue */
275 } 275 }
276 if (0 != *upload_data_size) 276 if (0 != *upload_data_size)
@@ -421,7 +421,7 @@ process_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
421 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 421 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
422 "Peerinfo is notifying us to rebuild our hostlist\n"); 422 "Peerinfo is notifying us to rebuild our hostlist\n");
423 if (NULL != err_msg) 423 if (NULL != err_msg)
424 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 424 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
425 _("Error in communication with PEERINFO service: %s\n"), 425 _("Error in communication with PEERINFO service: %s\n"),
426 err_msg); 426 err_msg);
427 if (NULL != pitr) 427 if (NULL != pitr)
diff --git a/src/nat/nat.c b/src/nat/nat.c
index 80d0fc2bd..eeafc5b97 100644
--- a/src/nat/nat.c
+++ b/src/nat/nat.c
@@ -1107,9 +1107,9 @@ GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, int is_tcp,
1107 if ((h->internal_address != NULL) && 1107 if ((h->internal_address != NULL) &&
1108 (inet_pton (AF_INET, h->internal_address, &in_addr) != 1)) 1108 (inet_pton (AF_INET, h->internal_address, &in_addr) != 1))
1109 { 1109 {
1110 LOG (GNUNET_ERROR_TYPE_WARNING, "nat", 1110 GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_WARNING,
1111 _("Malformed %s `%s' given in configuration!\n"), "INTERNAL_ADDRESS", 1111 "nat", "INTERNAL_ADDRESS",
1112 h->internal_address); 1112 _("malformed"));
1113 GNUNET_free (h->internal_address); 1113 GNUNET_free (h->internal_address);
1114 h->internal_address = NULL; 1114 h->internal_address = NULL;
1115 } 1115 }
diff --git a/src/util/bandwidth.c b/src/util/bandwidth.c
index 9d679493a..60cb50529 100644
--- a/src/util/bandwidth.c
+++ b/src/util/bandwidth.c
@@ -24,8 +24,7 @@
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
26#include "platform.h" 26#include "platform.h"
27#include "gnunet_bandwidth_lib.h" 27#include "gnunet_util_lib.h"
28#include "gnunet_server_lib.h"
29 28
30 29
31#define LOG(kind,...) GNUNET_log_from (kind, "util-bandwidth", __VA_ARGS__) 30#define LOG(kind,...) GNUNET_log_from (kind, "util-bandwidth", __VA_ARGS__)
@@ -83,9 +82,9 @@ GNUNET_BANDWIDTH_value_get_available_until (struct GNUNET_BANDWIDTH_Value32NBO
83 82
84 b = ntohl (bps.value__); 83 b = ntohl (bps.value__);
85 LOG (GNUNET_ERROR_TYPE_DEBUG, 84 LOG (GNUNET_ERROR_TYPE_DEBUG,
86 "Bandwidth has %llu bytes available until deadline in %llums\n", 85 "Bandwidth has %llu bytes available until deadline in %s\n",
87 (unsigned long long) ((b * deadline.rel_value + 500LL) / 1000LL), 86 (unsigned long long) ((b * deadline.rel_value + 500LL) / 1000LL),
88 deadline.rel_value); 87 GNUNET_STRINGS_relative_time_to_string (deadline, GNUNET_YES));
89 return (b * deadline.rel_value + 500LL) / 1000LL; 88 return (b * deadline.rel_value + 500LL) / 1000LL;
90} 89}
91 90
diff --git a/src/util/client.c b/src/util/client.c
index 73cca2383..337eade0c 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -27,11 +27,8 @@
27 * connections between clients and service providers. 27 * connections between clients and service providers.
28 */ 28 */
29#include "platform.h" 29#include "platform.h"
30#include "gnunet_common.h"
31#include "gnunet_client_lib.h"
32#include "gnunet_protocols.h" 30#include "gnunet_protocols.h"
33#include "gnunet_server_lib.h" 31#include "gnunet_util_lib.h"
34#include "gnunet_scheduler_lib.h"
35 32
36 33
37/** 34/**
@@ -955,9 +952,9 @@ client_delayed_retry (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
955 (th->client->back_off, 2), 952 (th->client->back_off, 2),
956 GNUNET_TIME_UNIT_SECONDS); 953 GNUNET_TIME_UNIT_SECONDS);
957 LOG (GNUNET_ERROR_TYPE_DEBUG, 954 LOG (GNUNET_ERROR_TYPE_DEBUG,
958 "Transmission failed %u times, trying again in %llums.\n", 955 "Transmission failed %u times, trying again in %s.\n",
959 MAX_ATTEMPTS - th->attempts_left, 956 MAX_ATTEMPTS - th->attempts_left,
960 (unsigned long long) delay.rel_value); 957 GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_YES));
961 th->reconnect_task = 958 th->reconnect_task =
962 GNUNET_SCHEDULER_add_delayed (delay, &client_delayed_retry, th); 959 GNUNET_SCHEDULER_add_delayed (delay, &client_delayed_retry, th);
963 return; 960 return;
@@ -1028,9 +1025,9 @@ client_notify (void *cls, size_t size, void *buf)
1028 (client->back_off, 2), 1025 (client->back_off, 2),
1029 GNUNET_TIME_UNIT_SECONDS); 1026 GNUNET_TIME_UNIT_SECONDS);
1030 LOG (GNUNET_ERROR_TYPE_DEBUG, 1027 LOG (GNUNET_ERROR_TYPE_DEBUG,
1031 "Transmission failed %u times, trying again in %llums.\n", 1028 "Transmission failed %u times, trying again in %s.\n",
1032 MAX_ATTEMPTS - th->attempts_left, 1029 MAX_ATTEMPTS - th->attempts_left,
1033 (unsigned long long) delay.rel_value); 1030 GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_YES));
1034 client->th = th; 1031 client->th = th;
1035 th->reconnect_task = 1032 th->reconnect_task =
1036 GNUNET_SCHEDULER_add_delayed (delay, &client_delayed_retry, th); 1033 GNUNET_SCHEDULER_add_delayed (delay, &client_delayed_retry, th);
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index abf351701..6231a1987 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -577,10 +577,10 @@ run_ready (struct GNUNET_NETWORK_FDSet *rs, struct GNUNET_NETWORK_FDSet *ws)
577 if (GNUNET_TIME_absolute_get_duration (pos->start_time).rel_value > 577 if (GNUNET_TIME_absolute_get_duration (pos->start_time).rel_value >
578 DELAY_THRESHOLD.rel_value) 578 DELAY_THRESHOLD.rel_value)
579 { 579 {
580 LOG (GNUNET_ERROR_TYPE_ERROR, "Task %llu took %llums to be scheduled\n", 580 LOG (GNUNET_ERROR_TYPE_DEBUG,
581 pos->id, 581 "Task %llu took %s to be scheduled\n",
582 (unsigned long long) 582 (unsigned long long) pos->id,
583 GNUNET_TIME_absolute_get_duration (pos->start_time).rel_value); 583 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (pos->start_time), GNUNET_YES));
584 } 584 }
585#endif 585#endif
586 tc.reason = pos->reason; 586 tc.reason = pos->reason;
diff --git a/src/util/server.c b/src/util/server.c
index 663661fea..7ecb98c64 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -832,11 +832,9 @@ warn_no_receive_done (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
832 &warn_no_receive_done, client); 832 &warn_no_receive_done, client);
833 if (0 == (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) 833 if (0 == (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason))
834 LOG (GNUNET_ERROR_TYPE_WARNING, 834 LOG (GNUNET_ERROR_TYPE_WARNING,
835 _ 835 _("Processing code for message of type %u did not call `GNUNET_SERVER_receive_done' after %s\n"),
836 ("Processing code for message of type %u did not call GNUNET_SERVER_receive_done after %llums\n"),
837 (unsigned int) client->warn_type, 836 (unsigned int) client->warn_type,
838 (unsigned long long) 837 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (client->warn_start), GNUNET_YES));
839 GNUNET_TIME_absolute_get_duration (client->warn_start).rel_value);
840} 838}
841 839
842 840
diff --git a/src/util/test_crypto_ksk.c b/src/util/test_crypto_ksk.c
index f0e4337ef..40bf435ef 100644
--- a/src/util/test_crypto_ksk.c
+++ b/src/util/test_crypto_ksk.c
@@ -167,9 +167,10 @@ testEncryptDecrypt (struct GNUNET_CRYPTO_RsaPrivateKey *hostkey)
167 continue; 167 continue;
168 } 168 }
169 } 169 }
170 printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", ITER, 170 printf ("%d RSA encrypt/decrypt operations %s (%d failures)\n",
171 (unsigned long long) 171 ITER,
172 GNUNET_TIME_absolute_get_duration (start).rel_value, ok); 172 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES),
173 ok);
173 if (ok == 0) 174 if (ok == 0)
174 return GNUNET_OK; 175 return GNUNET_OK;
175 else 176 else
@@ -217,9 +218,9 @@ testSignVerify (struct GNUNET_CRYPTO_RsaPrivateKey *hostkey)
217 continue; 218 continue;
218 } 219 }
219 } 220 }
220 printf ("%d RSA sign/verify operations %llums\n", ITER, 221 printf ("%d RSA sign/verify operations %s\n",
221 (unsigned long long) 222 ITER,
222 GNUNET_TIME_absolute_get_duration (start).rel_value); 223 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES));
223 return ok; 224 return ok;
224} 225}
225 226
diff --git a/src/util/test_crypto_rsa.c b/src/util/test_crypto_rsa.c
index 0113b7ad0..fcaf78612 100644
--- a/src/util/test_crypto_rsa.c
+++ b/src/util/test_crypto_rsa.c
@@ -81,9 +81,10 @@ testEncryptDecrypt ()
81 continue; 81 continue;
82 } 82 }
83 } 83 }
84 printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", ITER, 84 printf ("%d RSA encrypt/decrypt operations %s (%d failures)\n",
85 (unsigned long long) 85 ITER,
86 GNUNET_TIME_absolute_get_duration (start).rel_value, ok); 86 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES),
87 ok);
87 if (ok == 0) 88 if (ok == 0)
88 return GNUNET_OK; 89 return GNUNET_OK;
89 return GNUNET_SYSERR; 90 return GNUNET_SYSERR;
@@ -169,9 +170,10 @@ testEncryptDecryptSK ()
169 continue; 170 continue;
170 } 171 }
171 } 172 }
172 printf ("%d RSA encrypt/decrypt SK operations %llums (%d failures)\n", ITER, 173 printf ("%d RSA encrypt/decrypt SK operations %s (%d failures)\n",
173 (unsigned long long) 174 ITER,
174 GNUNET_TIME_absolute_get_duration (start).rel_value, ok); 175 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES),
176 ok);
175 if (ok != 0) 177 if (ok != 0)
176 return GNUNET_SYSERR; 178 return GNUNET_SYSERR;
177 return GNUNET_OK; 179 return GNUNET_OK;
@@ -220,9 +222,8 @@ testSignVerify ()
220 continue; 222 continue;
221 } 223 }
222 } 224 }
223 printf ("%d RSA sign/verify operations %llums\n", ITER, 225 printf ("%d RSA sign/verify operations %s\n", ITER,
224 (unsigned long long) 226 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES));
225 GNUNET_TIME_absolute_get_duration (start).rel_value);
226 return ok; 227 return ok;
227} 228}
228 229