summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-i2c.c
diff options
context:
space:
mode:
authorKai Ye <yekai13@huawei.com>2021-04-08 18:23:50 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-16 21:16:33 +1000
commit3eb75fc7d8c79c7c6cfe388330c14999cf333d29 (patch)
tree50d4d6582c1a2d5fe91fd4bd367cd9673e7265ba /drivers/crypto/atmel-i2c.c
parent1f34cc4a8da34fbb250efb928f9b8c6fe7ee0642 (diff)
downloadlinux-stable-3eb75fc7d8c79c7c6cfe388330c14999cf333d29.tar.gz
linux-stable-3eb75fc7d8c79c7c6cfe388330c14999cf333d29.tar.bz2
linux-stable-3eb75fc7d8c79c7c6cfe388330c14999cf333d29.zip
crypto: atmel - use the correct print format
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>
Diffstat (limited to 'drivers/crypto/atmel-i2c.c')
-rw-r--r--drivers/crypto/atmel-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c
index e8e8281e027d..6fd3e969211d 100644
--- a/drivers/crypto/atmel-i2c.c
+++ b/drivers/crypto/atmel-i2c.c
@@ -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;
}