diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-18 18:20:10 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-19 15:42:42 +0800 |
commit | 3dc18ac906a12dd2a2f602193b80748e75586442 (patch) | |
tree | 4b4a11c331c27bba4962729cdc20a2913aae1173 /crypto | |
parent | ff422fd819734dfbe6b9e997ff08f5af88ed5db0 (diff) | |
download | linux-crypto-3dc18ac906a12dd2a2f602193b80748e75586442.tar.gz linux-crypto-3dc18ac906a12dd2a2f602193b80748e75586442.zip |
crypto: testmgr - Print akcipher algorithm name
When an akcipher test fails, we don't know which algorithm failed
because the name is not printed. This patch fixes this.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/testmgr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 769cc2a8..5c9d5a5e 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2034,6 +2034,8 @@ free_xbuf: static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, struct akcipher_testvec *vecs, unsigned int tcount) { + const char *algo = + crypto_tfm_alg_driver_name(crypto_akcipher_tfm(tfm)); int ret, i; for (i = 0; i < tcount; i++) { @@ -2041,8 +2043,8 @@ static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, if (!ret) continue; - pr_err("alg: akcipher: test failed on vector %d, err=%d\n", - i + 1, ret); + pr_err("alg: akcipher: test %d failed for %s, err=%d\n", + i + 1, algo, ret); return ret; } return 0; |