aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/testmgr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 769cc2a88040..5c9d5a5e7b65 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2034,6 +2034,8 @@ free_xbuf:
2034static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, 2034static int test_akcipher(struct crypto_akcipher *tfm, const char *alg,
2035 struct akcipher_testvec *vecs, unsigned int tcount) 2035 struct akcipher_testvec *vecs, unsigned int tcount)
2036{ 2036{
2037 const char *algo =
2038 crypto_tfm_alg_driver_name(crypto_akcipher_tfm(tfm));
2037 int ret, i; 2039 int ret, i;
2038 2040
2039 for (i = 0; i < tcount; i++) { 2041 for (i = 0; i < tcount; i++) {
@@ -2041,8 +2043,8 @@ static int test_akcipher(struct crypto_akcipher *tfm, const char *alg,
2041 if (!ret) 2043 if (!ret)
2042 continue; 2044 continue;
2043 2045
2044 pr_err("alg: akcipher: test failed on vector %d, err=%d\n", 2046 pr_err("alg: akcipher: test %d failed for %s, err=%d\n",
2045 i + 1, ret); 2047 i + 1, algo, ret);
2046 return ret; 2048 return ret;
2047 } 2049 }
2048 return 0; 2050 return 0;