diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
commit | 416c2f5a713b93ba689a8cd1e038682a53e6bc17 (patch) | |
tree | 987f51d9edfddc02afe1524df5e1156b920c71d4 /src/datastore/perf_datastore_api.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r-- | src/datastore/perf_datastore_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index 372a61f7d..106d40684 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -123,7 +123,7 @@ check_success (void *cls, int success, struct GNUNET_TIME_Absolute min_expiratio | |||
123 | return; | 123 | return; |
124 | } | 124 | } |
125 | #if REPORT_ID | 125 | #if REPORT_ID |
126 | fprintf (stderr, "I"); | 126 | FPRINTF (stderr, "%s", "I"); |
127 | #endif | 127 | #endif |
128 | stored_bytes += crc->size; | 128 | stored_bytes += crc->size; |
129 | stored_ops++; | 129 | stored_ops++; |
@@ -166,7 +166,7 @@ remove_next (void *cls, int success, struct GNUNET_TIME_Absolute min_expiration, | |||
166 | return; | 166 | return; |
167 | } | 167 | } |
168 | #if REPORT_ID | 168 | #if REPORT_ID |
169 | fprintf (stderr, "D"); | 169 | FPRINTF (stderr, "%s", "D"); |
170 | #endif | 170 | #endif |
171 | GNUNET_assert (GNUNET_OK == success); | 171 | GNUNET_assert (GNUNET_OK == success); |
172 | GNUNET_SCHEDULER_add_now (&run_continuation, crc); | 172 | GNUNET_SCHEDULER_add_now (&run_continuation, crc); |
@@ -284,7 +284,7 @@ run_tests (void *cls, int success, struct GNUNET_TIME_Absolute min_expiration, c | |||
284 | 284 | ||
285 | if (success != GNUNET_YES) | 285 | if (success != GNUNET_YES) |
286 | { | 286 | { |
287 | fprintf (stderr, | 287 | FPRINTF (stderr, |
288 | "Test 'put' operation failed with error `%s' database likely not setup, skipping test.", | 288 | "Test 'put' operation failed with error `%s' database likely not setup, skipping test.", |
289 | msg); | 289 | msg); |
290 | GNUNET_free (crc); | 290 | GNUNET_free (crc); |
@@ -314,7 +314,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
314 | (GNUNET_TIME_UNIT_SECONDS), 0, 1, | 314 | (GNUNET_TIME_UNIT_SECONDS), 0, 1, |
315 | GNUNET_TIME_UNIT_MINUTES, &run_tests, crc)) | 315 | GNUNET_TIME_UNIT_MINUTES, &run_tests, crc)) |
316 | { | 316 | { |
317 | fprintf (stderr, "Test 'put' operation failed.\n"); | 317 | FPRINTF (stderr, "%s", "Test 'put' operation failed.\n"); |
318 | ok = 1; | 318 | ok = 1; |
319 | GNUNET_free (crc); | 319 | GNUNET_free (crc); |
320 | } | 320 | } |
@@ -396,7 +396,7 @@ main (int argc, char *argv[]) | |||
396 | if (pos != plugin_name) | 396 | if (pos != plugin_name) |
397 | pos[0] = '.'; | 397 | pos[0] = '.'; |
398 | #if REPORT_ID | 398 | #if REPORT_ID |
399 | fprintf (stderr, "\n"); | 399 | FPRINTF (stderr, "%s", "\n"); |
400 | #endif | 400 | #endif |
401 | GNUNET_DISK_directory_remove (dir_name); | 401 | GNUNET_DISK_directory_remove (dir_name); |
402 | return ret; | 402 | return ret; |