summaryrefslogtreecommitdiff
path: root/lib/tpm-common.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-23 21:29:35 -0700
committerSimon Glass <sjg@chromium.org>2018-12-05 06:01:34 -0700
commit5092af6b571c883c49da2b6df7419d73874cdba4 (patch)
tree561800887aaaa9463545780e28bee73a364da089 /lib/tpm-common.c
parentbe8a025ed750edde0207ea7d75a73cb12313d288 (diff)
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>
Diffstat (limited to 'lib/tpm-common.c')
-rw-r--r--lib/tpm-common.c2
1 files changed, 1 insertions, 1 deletions
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;
}