Skip to content

Commit abb06e6

Browse files
committed
x86/crypto: update log format when not found cis sm3/sm4
use pr_info instead of pr_err when not found hygon cis sm3/sm4 feature X86_FEATURE_HYGON_SM4/X86_FEATURE_HYGON_SM3. Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 2af48bc commit abb06e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/crypto/sm3_cis_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int __init sm3_cis_init(void)
9999
{
100100
#ifdef CONFIG_X86_64
101101
if (!boot_cpu_has(X86_FEATURE_HYGON_SM3)) {
102-
pr_err("CIS SM3 Not Support");
102+
pr_info("CIS SM3 are not detected.\n");
103103
return -ENODEV;
104104
}
105105
#endif /* CONFIG_X86_64 */

arch/x86/crypto/sm4_cis_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ static int __init cis_sm4_init(void)
903903
int err = 0;
904904
#ifdef CONFIG_X86_64
905905
if (!boot_cpu_has(X86_FEATURE_HYGON_SM4)) {
906-
pr_err("CIS SM4 Not Support");
906+
pr_info("CIS SM4 are not detected.\n");
907907
return -ENODEV;
908908
}
909909
#endif /* CONFIG_X86_64 */

0 commit comments

Comments
 (0)