]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
crypto: atmel - use the correct print format
authorKai Ye <yekai13@huawei.com>
Thu, 8 Apr 2021 10:23:50 +0000 (18:23 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Apr 2021 11:16:33 +0000 (21:16 +1000)
According to Documentation/core-api/printk-formats.rst, 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/atmel-i2c.c
drivers/crypto/atmel-sha.c

index e8e8281e027d9c9d6161325b549aed5eb4d83883..6fd3e969211d7aa7d14fc14fb94b18610d093b62 100644 (file)
@@ -339,7 +339,7 @@ int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
        }
 
        if (bus_clk_rate > 1000000L) {
-               dev_err(dev, "%d exceeds maximum supported clock frequency (1MHz)\n",
+               dev_err(dev, "%u exceeds maximum supported clock frequency (1MHz)\n",
                        bus_clk_rate);
                return -EINVAL;
        }
index 352d80cb5ae95e755519203460cacf69eeb326f3..1b13f601fd959c372c6913d63bb65734cb4da8cb 100644 (file)
@@ -434,7 +434,7 @@ static int atmel_sha_init(struct ahash_request *req)
 
        ctx->flags = 0;
 
-       dev_dbg(dd->dev, "init: digest size: %d\n",
+       dev_dbg(dd->dev, "init: digest size: %u\n",
                crypto_ahash_digestsize(tfm));
 
        switch (crypto_ahash_digestsize(tfm)) {
@@ -1102,7 +1102,7 @@ static int atmel_sha_start(struct atmel_sha_dev *dd)
        struct atmel_sha_reqctx *ctx = ahash_request_ctx(req);
        int err;
 
-       dev_dbg(dd->dev, "handling new req, op: %lu, nbytes: %d\n",
+       dev_dbg(dd->dev, "handling new req, op: %lu, nbytes: %u\n",
                                                ctx->op, req->nbytes);
 
        err = atmel_sha_hw_init(dd);