[PATCH 4/7] tpm: Correct warning on 32-bit build
Tom Rini
trini at konsulko.com
Mon Mar 15 16:52:38 CET 2021
On Sun, Feb 07, 2021 at 02:27:04PM -0700, Simon Glass wrote:
> Fix the warning:
>
> drivers/tpm/tpm2_tis_sandbox.c: In function ‘sandbox_tpm2_xfer’:
> drivers/tpm/tpm2_tis_sandbox.c:288:48: warning: format ‘%ld’ expects
> argument of type ‘long int’, but argument 2 has type ‘size_t’
> {aka ‘unsigned int’} [-Wformat=]
> printf("TPM2: Unmatching length, received: %ld, expected: %d\n",
> ~~^
> %d
> send_size, length);
> ~~~~~~~~~
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210315/8ba1167b/attachment.sig>
More information about the U-Boot
mailing list