Merge branch 'net' of git://git.denx.de/u-boot-socfpga
[oweals/u-boot.git] / lib / tpm-common.c
index 2bf0b41e26f2476d89f15088c98c033f83bac78c..e4af87f76aa7aa13c47acd2109a42a755d7bef60 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/unaligned.h>
 #include <tpm-common.h>
 #include "tpm-utils.h"
@@ -119,7 +120,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;
                }