crypto: hisilicon/sec - use the correct print format
authorKai Ye <yekai13@huawei.com>
Sat, 22 Jan 2022 08:13:12 +0000 (16:13 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 31 Jan 2022 00:21:45 +0000 (11:21 +1100)
Use the correct print format. Printing an unsigned int value should
use %u instead of %d.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c

index 7013272..8caba9f 100644 (file)
@@ -240,7 +240,7 @@ static void sec_req_cb(struct hisi_qp *qp, void *resp)
 
        if (unlikely(type != type_supported)) {
                atomic64_inc(&dfx->err_bd_cnt);
-               pr_err("err bd type [%d]\n", type);
+               pr_err("err bd type [%u]\n", type);
                return;
        }