diff options
Diffstat (limited to 'src/datastore/perf_plugin_datastore.c')
-rw-r--r-- | src/datastore/perf_plugin_datastore.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/datastore/perf_plugin_datastore.c b/src/datastore/perf_plugin_datastore.c index 8f552c4eb..6106b11cb 100644 --- a/src/datastore/perf_plugin_datastore.c +++ b/src/datastore/perf_plugin_datastore.c | |||
@@ -135,7 +135,7 @@ putValue (struct GNUNET_DATASTORE_PluginFunctions *api, int i, int k) | |||
135 | GNUNET_CRYPTO_random_u32 | 135 | GNUNET_CRYPTO_random_u32 |
136 | (GNUNET_CRYPTO_QUALITY_WEAK, 1000))), &msg)) | 136 | (GNUNET_CRYPTO_QUALITY_WEAK, 1000))), &msg)) |
137 | { | 137 | { |
138 | fprintf (stderr, "ERROR: `%s'\n", msg); | 138 | FPRINTF (stderr, "ERROR: `%s'\n", msg); |
139 | GNUNET_free_non_null (msg); | 139 | GNUNET_free_non_null (msg); |
140 | return; | 140 | return; |
141 | } | 141 | } |
@@ -165,7 +165,7 @@ iterate_zeros (void *cls, const GNUNET_HashCode * key, uint32_t size, | |||
165 | hits[i / 8] |= (1 << (i % 8)); | 165 | hits[i / 8] |= (1 << (i % 8)); |
166 | 166 | ||
167 | #if VERBOSE | 167 | #if VERBOSE |
168 | fprintf (stderr, "Found result type=%u, priority=%u, size=%u, expire=%llu\n", | 168 | FPRINTF (stderr, "Found result type=%u, priority=%u, size=%u, expire=%llu\n", |
169 | type, priority, size, (unsigned long long) expiration.abs_value); | 169 | type, priority, size, (unsigned long long) expiration.abs_value); |
170 | #endif | 170 | #endif |
171 | crc->cnt++; | 171 | crc->cnt++; |
@@ -344,7 +344,7 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
344 | crc->phase = RP_ERROR; | 344 | crc->phase = RP_ERROR; |
345 | } | 345 | } |
346 | #if VERBOSE | 346 | #if VERBOSE |
347 | fprintf (stderr, "In phase %d, iteration %u\n", crc->phase, crc->cnt); | 347 | FPRINTF (stderr, "In phase %d, iteration %u\n", crc->phase, crc->cnt); |
348 | #endif | 348 | #endif |
349 | switch (crc->phase) | 349 | switch (crc->phase) |
350 | { | 350 | { |
@@ -422,7 +422,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
422 | GNUNET_asprintf (&libname, "libgnunet_plugin_datastore_%s", name); | 422 | GNUNET_asprintf (&libname, "libgnunet_plugin_datastore_%s", name); |
423 | if (NULL == (ret = GNUNET_PLUGIN_load (libname, &env))) | 423 | if (NULL == (ret = GNUNET_PLUGIN_load (libname, &env))) |
424 | { | 424 | { |
425 | fprintf (stderr, "Failed to load plugin `%s'!\n", name); | 425 | FPRINTF (stderr, "Failed to load plugin `%s'!\n", name); |
426 | return NULL; | 426 | return NULL; |
427 | } | 427 | } |
428 | GNUNET_free (libname); | 428 | GNUNET_free (libname); |
@@ -441,8 +441,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
441 | api = load_plugin (c); | 441 | api = load_plugin (c); |
442 | if (api == NULL) | 442 | if (api == NULL) |
443 | { | 443 | { |
444 | fprintf (stderr, | 444 | FPRINTF (stderr, |
445 | "Could not initialize plugin, assuming database not configured. Test not run!\n"); | 445 | "Could not initialize plugin, assuming database not configured. Test not run!\n", NULL); |
446 | return; | 446 | return; |
447 | } | 447 | } |
448 | crc = GNUNET_malloc (sizeof (struct CpsRunContext)); | 448 | crc = GNUNET_malloc (sizeof (struct CpsRunContext)); |
@@ -478,7 +478,7 @@ check () | |||
478 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv, | 478 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv, |
479 | "perf-plugin-datastore", "nohelp", options, &run, NULL); | 479 | "perf-plugin-datastore", "nohelp", options, &run, NULL); |
480 | if (ok != 0) | 480 | if (ok != 0) |
481 | fprintf (stderr, "Missed some testcases: %u\n", ok); | 481 | FPRINTF (stderr, "Missed some testcases: %u\n", ok); |
482 | return ok; | 482 | return ok; |
483 | } | 483 | } |
484 | 484 | ||