projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8a025
)
tpm: Fix a logging warning in unpack_byte_string()
author
Simon Glass
<sjg@chromium.org>
Sat, 24 Nov 2018 04:29:35 +0000
(21:29 -0700)
committer
Simon Glass
<sjg@chromium.org>
Wed, 5 Dec 2018 13:01:34 +0000
(06:01 -0700)
Fix the printf() string to avoid a warning.
Signed-off-by: Simon Glass <sjg@chromium.org>
lib/tpm-common.c
patch
|
blob
|
history
diff --git
a/lib/tpm-common.c
b/lib/tpm-common.c
index 2bf0b41e26f2476d89f15088c98c033f83bac78c..86b4f413c2e3930edbbcb88eb58342026006e1e7 100644
(file)
--- 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=%z
x\n",
size, offset, length);
return -1;
}