diff options
author | Mathew McBride <matt@traverse.com.au> | 2021-11-11 04:06:31 +0000 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2021-11-17 13:47:36 +0200 |
commit | 4a08dba019cda7bd6d81694ecb3230dedf54d46f (patch) | |
tree | 0931c6adca5c1f24ab62286b6ad8dfd97f40a801 /drivers/tpm | |
parent | fb30d99df831c7235e61bd0c4e07a25ae20926b3 (diff) | |
download | u-boot-4a08dba019cda7bd6d81694ecb3230dedf54d46f.tar.gz u-boot-4a08dba019cda7bd6d81694ecb3230dedf54d46f.tar.bz2 u-boot-4a08dba019cda7bd6d81694ecb3230dedf54d46f.zip |
drivers: tpm: atmel_twi: fix printf specifier compile warning
%d was being used as the specifier for size_t, leading to a
compiler warning
Signed-off-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'drivers/tpm')
-rw-r--r-- | drivers/tpm/tpm_atmel_twi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tpm/tpm_atmel_twi.c b/drivers/tpm/tpm_atmel_twi.c index a5dfb34846..fa4fbec6bb 100644 --- a/drivers/tpm/tpm_atmel_twi.c +++ b/drivers/tpm/tpm_atmel_twi.c @@ -116,7 +116,7 @@ static int tpm_atmel_twi_xfer(struct udevice *dev, } } if (res) { - printf("i2c_read returned %d (rlen=%d)\n", res, *recv_len); + printf("i2c_read returned %d (rlen=%zu)\n", res, *recv_len); #ifdef DEBUG print_buffer(0, recvbuf, 1, *recv_len, 0); #endif |