From: Simon Glass Date: Sat, 24 Nov 2018 04:29:35 +0000 (-0700) Subject: tpm: Fix a logging warning in unpack_byte_string() X-Git-Tag: baikal/mips/sdk5.9~1230^2~21 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=c33671ab8bc5c179cabb4ef16449396b2b71b921;p=uboot.git tpm: Fix a logging warning in unpack_byte_string() Fix the printf() string to avoid a warning. Signed-off-by: Simon Glass --- diff --git a/lib/tpm-common.c b/lib/tpm-common.c index 2bf0b41e26..86b4f413c2 100644 --- a/lib/tpm-common.c +++ b/lib/tpm-common.c @@ -119,7 +119,7 @@ int unpack_byte_string(const u8 *str, size_t size, const char *format, ...) if (offset + length > size) { va_end(args); - log_err("Failed to read: size=%d, offset=%x, len=%x\n", + log_err("Failed to read: size=%zd, offset=%zx, len=%zx\n", size, offset, length); return -1; }