diff mbox series

[U-Boot,12/21] tpm: Fix a logging warning in unpack_byte_string()

Message ID 20181124042944.239106-13-sjg@chromium.org
State Accepted
Commit 5092af6b571c883c49da2b6df7419d73874cdba4
Delegated to: Simon Glass
Headers show
Series Various patches for verified boot support | expand

Commit Message

Simon Glass Nov. 24, 2018, 4:29 a.m. UTC
Fix the printf() string to avoid a warning.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/tpm-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Dec. 5, 2018, 11:10 p.m. UTC | #1
Fix the printf() string to avoid a warning.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/tpm-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm/master, thanks!
diff mbox series

Patch

diff --git a/lib/tpm-common.c b/lib/tpm-common.c
index 2bf0b41e26f..86b4f413c2e 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;
 		}