aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarek Behún <marek.behun@nic.cz>2021-09-24 23:06:38 +0200
committerStefan Roese <sr@denx.de>2021-10-01 11:07:13 +0200
commit3b5da64edfdc013b105573a20871659d37ab53de (patch)
tree656055ed37c42b913204d6e88ae034c5941e682f /tools
parent7fde64c004ea3ba46a20f7ef6d076f501bcb585f (diff)
downloadu-boot-3b5da64edfdc013b105573a20871659d37ab53de.zip
u-boot-3b5da64edfdc013b105573a20871659d37ab53de.tar.gz
u-boot-3b5da64edfdc013b105573a20871659d37ab53de.tar.bz2
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 d200ff2..e72555f 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;