Skip to content
Snippets Groups Projects
Commit 5092af6b authored by Simon Glass's avatar Simon Glass
Browse files

tpm: Fix a logging warning in unpack_byte_string()


Fix the printf() string to avoid a warning.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent be8a025e
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ int unpack_byte_string(const u8 *str, size_t size, const char *format, ...) ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment