summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarek Behún <marek.behun@nic.cz>2021-09-25 00:06:38 +0300
committerStefan Roese <sr@denx.de>2021-10-01 12:07:13 +0300
commit3b5da64edfdc013b105573a20871659d37ab53de (patch)
tree656055ed37c42b913204d6e88ae034c5941e682f /tools
parent7fde64c004ea3ba46a20f7ef6d076f501bcb585f (diff)
downloadu-boot-3b5da64edfdc013b105573a20871659d37ab53de.tar.xz
tools: kwbimage: Fix printf format warning
On 32-bit ARM the compiler complains: tools/kwbimage.c:547: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ Fix this by using %zu instead of %lu format specifier. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/kwbimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index d200ff2425..e72555fe74 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -542,7 +542,7 @@ static int kwb_export_pubkey(RSA *key, struct pubkey_der_v1 *dst, FILE *hashf,
}
if (4 + size_seq > sizeof(dst->key)) {
- fprintf(stderr, "export pk failed: seq too large (%d, %lu)\n",
+ fprintf(stderr, "export pk failed: seq too large (%d, %zu)\n",
4 + size_seq, sizeof(dst->key));
fprintf(stderr, errmsg, keyname);
return -ENOBUFS;