summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorFranck LENORMAND <franck.lenormand@nxp.com>2018-09-10 11:54:24 +0200
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:33:59 +0800
commit70ff648be4d13e8e487af4db3739e0e1b1f34fcb (patch)
tree5c0dc80c4ba6b02b3bc625c22ac96d12dfa115aa /crypto
parent48af181eac0c996efdc9f7d25d268a6c601a0c03 (diff)
MLK-19434: crypto: testmgr: Add log printing once if disabled
If the test manager is not disable, it is not possible to determine if tcrypt result is suitable or not. This patch fix this issue printing a message to the user. Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/testmgr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 2dc9757973b3..65d0648c44fc 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -46,6 +46,8 @@ MODULE_PARM_DESC(notests, "disable crypto self-tests");
/* a perfect nop */
int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
{
+ printk_once(KERN_INFO "alg: self-tests disabled by "
+ "CONFIG_CRYPTO_MANAGER_DISABLE_TESTS\n");
return 0;
}