lkm: tweaks to self-test dynamics/messages.

This commit is contained in:
Daniel Pouzzner
2020-08-21 12:10:17 -05:00
parent 554879da00
commit 217ec4ebd3
3 changed files with 10 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
#include <wolfssl/ssl.h>
#ifndef NO_CRYPT_TEST
#include <wolfcrypt/test/test.h>
#include <linux/delay.h>
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
@@ -28,7 +29,8 @@ static int wolfssl_init(void)
#ifndef NO_CRYPT_TEST
ret = wolfcrypt_test(NULL);
if (ret < 0) {
pr_err("wolfcrypt_test() failed with code %d", ret);
pr_err("wolfcrypt self-test failed.");
msleep(10);
return -ENOTRECOVERABLE;
}
pr_info("wolfSSL " LIBWOLFSSL_VERSION_STRING " self-test passed. See https://www.wolfssl.com/ for information.\n");