Re: [PATCH] crypto: tegra: fix size_t format string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 14, 2025 at 04:59:59PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
> 
> Printing size_t as %lu causes a warning when it is defined as 'unsigned int':
> 
> drivers/crypto/tegra/tegra-se-hash.c:344:22: error: format specifies type 'unsigned long' but the argument has type 'ssize_t' (aka 'int') [-Werror,-Wformat]
>   343 |         dev_dbg(se->dev, "msg len %llu msg left %llu sz %lu cfg %#x",
>       |                                                         ~~~
>       |                                                         %zd
> 
> Use %zu as the proper format string.
> 
> Fixes: ff4b7df0b511 ("crypto: tegra - Fix HASH intermediate result handling")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
>  drivers/crypto/tegra/tegra-se-hash.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

A similar patch has already been applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux