* change in their disk utilization.
*
* @param cls closure (NULL)
- * @param delta change in disk utilization,
+ * @param delta change in disk utilization,
* 0 for "reset to empty"
*/
static void
GNUNET_CRYPTO_random_u32
(GNUNET_CRYPTO_QUALITY_WEAK, 1000))), &msg))
{
- fprintf (stderr, "ERROR: `%s'\n", msg);
+ FPRINTF (stderr, "ERROR: `%s'\n", msg);
GNUNET_free_non_null (msg);
return;
}
stored_entries++;
}
-static void test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
+static void
+test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
static int
hits[i / 8] |= (1 << (i % 8));
#if VERBOSE
- fprintf (stderr, "Found result type=%u, priority=%u, size=%u, expire=%llu\n",
+ FPRINTF (stderr, "Found result type=%u, priority=%u, size=%u, expire=%llu\n",
type, priority, size, (unsigned long long) expiration.abs_value);
#endif
crc->cnt++;
crc->phase = RP_ERROR;
}
#if VERBOSE
- fprintf (stderr, "In phase %d, iteration %u\n", crc->phase, crc->cnt);
+ FPRINTF (stderr, "In phase %d, iteration %u\n", crc->phase, crc->cnt);
#endif
switch (crc->phase)
{
GNUNET_asprintf (&libname, "libgnunet_plugin_datastore_%s", name);
if (NULL == (ret = GNUNET_PLUGIN_load (libname, &env)))
{
- fprintf (stderr, "Failed to load plugin `%s'!\n", name);
+ FPRINTF (stderr, "Failed to load plugin `%s'!\n", name);
return NULL;
}
GNUNET_free (libname);
api = load_plugin (c);
if (api == NULL)
{
- fprintf (stderr,
- "Could not initialize plugin, assuming database not configured. Test not run!\n");
+ FPRINTF (stderr,
+ "%s", "Could not initialize plugin, assuming database not configured. Test not run!\n");
return;
}
crc = GNUNET_malloc (sizeof (struct CpsRunContext));
GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv,
"perf-plugin-datastore", "nohelp", options, &run, NULL);
if (ok != 0)
- fprintf (stderr, "Missed some testcases: %u\n", ok);
+ FPRINTF (stderr, "Missed some testcases: %u\n", ok);
return ok;
}