[U-Boot] [PATCH 12/21] tpm: Fix a logging warning in	unpack_byte_string()
    Simon Glass 
    sjg at chromium.org
       
    Sat Nov 24 04:29:35 UTC 2018
    
    
  
Fix the printf() string to avoid a warning.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
 lib/tpm-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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;
 		}
-- 
2.20.0.rc0.387.gc7a69e6b6c-goog
    
    
More information about the U-Boot
mailing list