
6 Jun
2023
6 Jun
'23
9:45 a.m.
From: Qi Tao <taoqi10@huawei.com> The 'req->dst_bytes' is u32 type, use %u instead of %u to print u32 values. Signed-off-by: Qi Tao <taoqi10@huawei.com> Signed-off-by: Weili Qian <qianweili@huawei.com> --- wd_rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wd_rsa.c b/wd_rsa.c index d34820d..4bd1d30 100644 --- a/wd_rsa.c +++ b/wd_rsa.c @@ -384,7 +384,7 @@ static int fill_rsa_msg(struct wd_rsa_msg *msg, struct wd_rsa_req *req, } if (unlikely(req->dst_bytes != sess->key_size)) { - WD_ERR("invalid: req dst bytes %hu is error!\n", req->dst_bytes); + WD_ERR("invalid: req dst bytes %u is error!\n", req->dst_bytes); return -WD_EINVAL; } } -- 2.30.0