summaryrefslogtreecommitdiff
path: root/tests/hashtest.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-12-13 12:20:32 +0100
committerJustus Winter <justus@g10code.com>2016-12-13 13:28:30 +0100
commit1b15ff58f9c17c16ce44acc110e2865e7d4d2321 (patch)
tree30b01a088de0e0479c2c681673129f999976e3d2 /tests/hashtest.c
parentf9aa9dd3fd39bb693a75b9a8166a7426c123cc3e (diff)
downloadlibgcrypt-1b15ff58f9c17c16ce44acc110e2865e7d4d2321.tar.gz
tests: Rename 'show' to 'info'.
-- Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests/hashtest.c')
-rw-r--r--tests/hashtest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/hashtest.c b/tests/hashtest.c
index 33907fb3..e4aacd9c 100644
--- a/tests/hashtest.c
+++ b/tests/hashtest.c
@@ -158,7 +158,7 @@ fail (const char *format, ...)
}
static void
-show (const char *format, ...)
+info (const char *format, ...)
{
va_list arg_ptr;
@@ -241,10 +241,10 @@ run_selftest (int algo)
fail ("extended selftest for %s (%d) failed: %s",
gcry_md_algo_name (algo), algo, gpg_strerror (err));
else if (err && verbose)
- show ("extended selftest for %s (%d) not implemented",
+ info ("extended selftest for %s (%d) not implemented",
gcry_md_algo_name (algo), algo);
else if (verbose)
- show ("extended selftest for %s (%d) passed",
+ info ("extended selftest for %s (%d) passed",
gcry_md_algo_name (algo), algo);
}
@@ -268,7 +268,7 @@ cmp_digest (const unsigned char *digest, size_t digestlen,
}
if (!testvectors[idx].algo)
{
- show ("%d GiB %+3d %-10s warning: %s",
+ info ("%d GiB %+3d %-10s warning: %s",
gigs, bytes, gcry_md_algo_name (algo), "no test vector");
missing_test_vectors++;
return 1;
@@ -499,7 +499,7 @@ main (int argc, char **argv)
fail ("Some test vectors are missing");
if (verbose)
- show ("All tests completed in %s. Errors: %d\n",
+ info ("All tests completed in %s. Errors: %d\n",
elapsed_time (1), error_count);
return !!error_count;
}