mirror of
https://xff.cz/git/u-boot/
synced 2025-09-17 08:32:07 +02:00
tpm: Fix a logging warning in unpack_byte_string()
Fix the printf() string to avoid a warning. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -119,7 +119,7 @@ int unpack_byte_string(const u8 *str, size_t size, const char *format, ...)
|
|||||||
|
|
||||||
if (offset + length > size) {
|
if (offset + length > size) {
|
||||||
va_end(args);
|
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);
|
size, offset, length);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user