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/test_datastore_api.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r-- | src/datastore/test_datastore_api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 942e0a11e..df6d3af62 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c | |||
@@ -193,10 +193,10 @@ check_value (void *cls, const GNUNET_HashCode * key, size_t size, | |||
193 | return; | 193 | return; |
194 | } | 194 | } |
195 | #if 0 | 195 | #if 0 |
196 | fprintf (stderr, "Check value got `%s' of size %u, type %d, expire %llu\n", | 196 | FPRINTF (stderr, "Check value got `%s' of size %u, type %d, expire %llu\n", |
197 | GNUNET_h2s (key), (unsigned int) size, type, | 197 | GNUNET_h2s (key), (unsigned int) size, type, |
198 | (unsigned long long) expiration.abs_value); | 198 | (unsigned long long) expiration.abs_value); |
199 | fprintf (stderr, | 199 | FPRINTF (stderr, |
200 | "Check value iteration %d wants size %u, type %d, expire %llu\n", i, | 200 | "Check value iteration %d wants size %u, type %d, expire %llu\n", i, |
201 | (unsigned int) get_size (i), get_type (i), | 201 | (unsigned int) get_size (i), get_type (i), |
202 | (unsigned long long) get_expiration (i).abs_value); | 202 | (unsigned long long) get_expiration (i).abs_value); |
@@ -461,11 +461,11 @@ run_tests (void *cls, int32_t success, struct GNUNET_TIME_Absolute min_expiratio | |||
461 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 461 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
462 | return; | 462 | return; |
463 | case GNUNET_NO: | 463 | case GNUNET_NO: |
464 | fprintf (stderr, "Test 'put' operation failed, key already exists (!?)\n"); | 464 | FPRINTF (stderr, "%s", "Test 'put' operation failed, key already exists (!?)\n"); |
465 | GNUNET_free (crc); | 465 | GNUNET_free (crc); |
466 | return; | 466 | return; |
467 | case GNUNET_SYSERR: | 467 | case GNUNET_SYSERR: |
468 | fprintf (stderr, | 468 | FPRINTF (stderr, |
469 | "Test 'put' operation failed with error `%s' database likely not setup, skipping test.\n", | 469 | "Test 'put' operation failed with error `%s' database likely not setup, skipping test.\n", |
470 | msg); | 470 | msg); |
471 | GNUNET_free (crc); | 471 | GNUNET_free (crc); |
@@ -495,7 +495,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
495 | (GNUNET_TIME_UNIT_SECONDS), 0, 1, | 495 | (GNUNET_TIME_UNIT_SECONDS), 0, 1, |
496 | GNUNET_TIME_UNIT_MINUTES, &run_tests, crc)) | 496 | GNUNET_TIME_UNIT_MINUTES, &run_tests, crc)) |
497 | { | 497 | { |
498 | fprintf (stderr, "Test 'put' operation failed.\n"); | 498 | FPRINTF (stderr, "%s", "Test 'put' operation failed.\n"); |
499 | ok = 1; | 499 | ok = 1; |
500 | GNUNET_free (crc); | 500 | GNUNET_free (crc); |
501 | } | 501 | } |
@@ -548,7 +548,7 @@ check () | |||
548 | proc = NULL; | 548 | proc = NULL; |
549 | #endif | 549 | #endif |
550 | if (ok != 0) | 550 | if (ok != 0) |
551 | fprintf (stderr, "Missed some testcases: %u\n", ok); | 551 | FPRINTF (stderr, "Missed some testcases: %u\n", ok); |
552 | return ok; | 552 | return ok; |
553 | } | 553 | } |
554 | 554 | ||