summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-08-06 08:55:18 -0600
committerIlias Apalodimas <[email protected]>2025-08-25 13:04:21 +0300
commit80afd60d9c7e24ef193b0d59ce98a3d86a70fcb5 (patch)
treeae1c49cb0e8168f87e417d0d45bf3ea55d2dbef1 /drivers
parent5727df875002ee8233c983aaed923c04a945be8c (diff)
tpm: cr50_i2c: Make use of 'z' for printing size_t
When printing the contents of an size_t variable we need to use z prefix to the format character in order to get the correct format type depending on 32 or 64bit-ness. Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tpm/cr50_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c
index 5b2d5ccb146..14a94f8d4a8 100644
--- a/drivers/tpm/cr50_i2c.c
+++ b/drivers/tpm/cr50_i2c.c
@@ -388,7 +388,7 @@ static int cr50_i2c_recv(struct udevice *dev, u8 *buf, size_t buf_len)
int status;
int ret;
- log_debug("%s: buf_len=%x\n", __func__, buf_len);
+ log_debug("%s: buf_len=%zx\n", __func__, buf_len);
if (buf_len < TPM_HEADER_SIZE)
return -E2BIG;
@@ -465,7 +465,7 @@ static int cr50_i2c_send(struct udevice *dev, const u8 *buf, size_t len)
ulong timeout;
int ret;
- log_debug("len=%x\n", len);
+ log_debug("len=%zx\n", len);
timeout = timer_get_us() + TIMEOUT_LONG_US;
do {
ret = cr50_i2c_status(dev);