projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb30d99
)
drivers: tpm: atmel_twi: fix printf specifier compile warning
author
Mathew McBride
<matt@traverse.com.au>
Thu, 11 Nov 2021 04:06:31 +0000
(
04:06
+0000)
committer
Ilias Apalodimas
<ilias.apalodimas@linaro.org>
Wed, 17 Nov 2021 11:47:36 +0000
(13:47 +0200)
%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>
drivers/tpm/tpm_atmel_twi.c
patch
|
blob
|
history
diff --git
a/drivers/tpm/tpm_atmel_twi.c
b/drivers/tpm/tpm_atmel_twi.c
index a5dfb34846661b25f4126740be4c345b2f03094b..fa4fbec6bbdf479ec826a0e2453e860055d3108a 100644
(file)
--- 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