From: Chenghai Huang huangchenghai2@huawei.com
The wd_find_msg_in_pool function and the wd_get_msg_from_pool function report the same error information, which affects code search during fault locating.
Signed-off-by: Chenghai Huang huangchenghai2@huawei.com --- wd_aead.c | 2 +- wd_cipher.c | 2 +- wd_comp.c | 2 +- wd_digest.c | 2 +- wd_ecc.c | 2 +- wd_rsa.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/wd_aead.c b/wd_aead.c index 0e59768..c0a7cfc 100644 --- a/wd_aead.c +++ b/wd_aead.c @@ -873,7 +873,7 @@ int wd_aead_poll_ctx(__u32 idx, __u32 expt, __u32 *count) msg = wd_find_msg_in_pool(&wd_aead_setting.pool, idx, resp_msg.tag); if (!msg) { - WD_ERR("failed to get msg from pool!\n"); + WD_ERR("failed to find msg from pool!\n"); return -WD_EINVAL; }
diff --git a/wd_cipher.c b/wd_cipher.c index f34a47e..4799213 100644 --- a/wd_cipher.c +++ b/wd_cipher.c @@ -808,7 +808,7 @@ int wd_cipher_poll_ctx(__u32 idx, __u32 expt, __u32 *count) msg = wd_find_msg_in_pool(&wd_cipher_setting.pool, idx, resp_msg.tag); if (!msg) { - WD_ERR("failed to get msg from pool!\n"); + WD_ERR("failed to find msg from pool!\n"); return -WD_EINVAL; }
diff --git a/wd_comp.c b/wd_comp.c index 459223e..34ddbcf 100644 --- a/wd_comp.c +++ b/wd_comp.c @@ -389,7 +389,7 @@ int wd_comp_poll_ctx(__u32 idx, __u32 expt, __u32 *count) msg = wd_find_msg_in_pool(&wd_comp_setting.pool, idx, resp_msg.tag); if (unlikely(!msg)) { - WD_ERR("failed to get msg from pool!\n"); + WD_ERR("failed to find msg from pool!\n"); return -WD_EINVAL; }
diff --git a/wd_digest.c b/wd_digest.c index 2e9734d..f116aec 100644 --- a/wd_digest.c +++ b/wd_digest.c @@ -769,7 +769,7 @@ int wd_digest_poll_ctx(__u32 idx, __u32 expt, __u32 *count) msg = wd_find_msg_in_pool(&wd_digest_setting.pool, idx, recv_msg.tag); if (!msg) { - WD_ERR("failed to get msg from pool!\n"); + WD_ERR("failed to find msg from pool!\n"); return -WD_EINVAL; }
diff --git a/wd_ecc.c b/wd_ecc.c index ec5e7ad..7c0c77a 100644 --- a/wd_ecc.c +++ b/wd_ecc.c @@ -2339,7 +2339,7 @@ int wd_ecc_poll_ctx(__u32 idx, __u32 expt, __u32 *count) msg = wd_find_msg_in_pool(&wd_ecc_setting.pool, idx, recv_msg.tag); if (!msg) { - WD_ERR("failed to get msg from pool!\n"); + WD_ERR("failed to find msg from pool!\n"); return -WD_EINVAL; }
diff --git a/wd_rsa.c b/wd_rsa.c index c3709de..b858491 100644 --- a/wd_rsa.c +++ b/wd_rsa.c @@ -553,7 +553,7 @@ int wd_rsa_poll_ctx(__u32 idx, __u32 expt, __u32 *count) msg = wd_find_msg_in_pool(&wd_rsa_setting.pool, idx, recv_msg.tag); if (!msg) { - WD_ERR("failed to get msg from pool!\n"); + WD_ERR("failed to find msg from pool!\n"); return -WD_EINVAL; }