]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
fix test vector error output
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 17 Jul 2009 18:36:21 +0000 (20:36 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 17 Jul 2009 18:36:21 +0000 (20:36 +0200)
src/libstrongswan/crypto/crypto_tester.c

index d4e0b08024d856ab58378d703ec876bb7e5cf1f2..4d13474a100529cfb000ba6ff17400839e95d3cf 100644 (file)
@@ -136,7 +136,7 @@ static bool test_crypter(private_crypto_tester_t *this,
                crypter->destroy(crypter);
                if (failed)
                {
-                       DBG1("disabled %N: test vector %d failed",
+                       DBG1("disabled %N: test vector %u failed",
                                 encryption_algorithm_names, alg, tested);
                        break;
                }
@@ -151,7 +151,7 @@ static bool test_crypter(private_crypto_tester_t *this,
        }
        if (!failed)
        {
-               DBG1("enabled  %N: passed %d test vectors",
+               DBG1("enabled  %N: passed %u test vectors",
                         encryption_algorithm_names, alg, tested);
        }
        return !failed;
@@ -240,7 +240,7 @@ static bool test_signer(private_crypto_tester_t *this,
                signer->destroy(signer);
                if (failed)
                {
-                       DBG1("disabled %N: test vector %d failed",
+                       DBG1("disabled %N: test vector %u failed",
                                 integrity_algorithm_names, alg, tested);
                        break;
                }
@@ -255,7 +255,7 @@ static bool test_signer(private_crypto_tester_t *this,
        }
        if (!failed)
        {
-               DBG1("enabled  %N: passed %d test vectors",
+               DBG1("enabled  %N: passed %u test vectors",
                         integrity_algorithm_names, alg, tested);
        }
        return !failed;
@@ -330,8 +330,8 @@ static bool test_hasher(private_crypto_tester_t *this, hash_algorithm_t alg,
                hasher->destroy(hasher);
                if (failed)
                {
-                       DBG1("disabled %N: test vector %d failed",
-                                hash_algorithm_names, alg), tested;
+                       DBG1("disabled %N: test vector %u failed",
+                                hash_algorithm_names, alg, tested);
                        break;
                }
        }
@@ -345,7 +345,7 @@ static bool test_hasher(private_crypto_tester_t *this, hash_algorithm_t alg,
        }
        if (!failed)
        {
-               DBG1("enabled  %N: passed %d test vectors",
+               DBG1("enabled  %N: passed %u test vectors",
                         hash_algorithm_names, alg, tested);
        }
        return !failed;
@@ -431,7 +431,7 @@ static bool test_prf(private_crypto_tester_t *this,
                prf->destroy(prf);
                if (failed)
                {
-                       DBG1("disabled %N: test vector %d failed",
+                       DBG1("disabled %N: test vector %u failed",
                                 pseudo_random_function_names, alg, tested);
                        break;
                }
@@ -446,7 +446,7 @@ static bool test_prf(private_crypto_tester_t *this,
        }
        if (!failed)
        {
-               DBG1("enabled  %N: passed %d test vectors",
+               DBG1("enabled  %N: passed %u test vectors",
                         pseudo_random_function_names, alg, tested);
        }
        return !failed;
@@ -515,7 +515,7 @@ static bool test_rng(private_crypto_tester_t *this, rng_quality_t quality,
                rng->destroy(rng);
                if (failed)
                {
-                       DBG1("disabled %N: test vector %d failed",
+                       DBG1("disabled %N: test vector %u failed",
                                 rng_quality_names, quality, tested);
                        break;
                }
@@ -530,7 +530,7 @@ static bool test_rng(private_crypto_tester_t *this, rng_quality_t quality,
        }
        if (!failed)
        {
-               DBG1("enabled  %N: passed %d test vectors",
+               DBG1("enabled  %N: passed %u test vectors",
                         rng_quality_names, quality, tested);
        }
        return !failed;