mbox series

[0/2] crypto: correct the use of print format

Message ID 1617877431-38290-1-git-send-email-yekai13@huawei.com
Headers show
Series crypto: correct the use of print format | expand

Message

yekai (A) April 8, 2021, 10:23 a.m. UTC
According to Documentation/core-api/printk-formats.rst,
Use the correct print format. Printing an unsigned int value should use %u
instead of %d. Otherwise printk() might end up displaying negative numbers.

Kai Ye (2):
  crypto/atmel - use the correct print format
  crypto: hisilicon/sec_drv - use the correct print format

 drivers/crypto/atmel-i2c.c             | 2 +-
 drivers/crypto/atmel-sha.c             | 4 ++--
 drivers/crypto/hisilicon/sec/sec_drv.c | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

Comments

Herbert Xu April 16, 2021, 11:31 a.m. UTC | #1
On Thu, Apr 08, 2021 at 06:23:49PM +0800, Kai Ye wrote:
> According to Documentation/core-api/printk-formats.rst,

> Use the correct print format. Printing an unsigned int value should use %u

> instead of %d. Otherwise printk() might end up displaying negative numbers.

> 

> Kai Ye (2):

>   crypto/atmel - use the correct print format

>   crypto: hisilicon/sec_drv - use the correct print format

> 

>  drivers/crypto/atmel-i2c.c             | 2 +-

>  drivers/crypto/atmel-sha.c             | 4 ++--

>  drivers/crypto/hisilicon/sec/sec_drv.c | 6 +++---

>  3 files changed, 6 insertions(+), 6 deletions(-)


All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt