diff options
author | Marek Behún <marek.behun@nic.cz> | 2021-09-24 23:06:38 +0200 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2022-06-20 18:41:06 +0900 |
commit | ffc211fe4d29b5bd90c852f5fd950bc1903796d5 (patch) | |
tree | abda8feca1c07e53770b500e9d113d2af9d0dd21 | |
parent | 50f3a982c54c9f96230fae8b4ffeb940e41c3ec9 (diff) | |
download | u-boot-ffc211fe4d29b5bd90c852f5fd950bc1903796d5.tar.gz u-boot-ffc211fe4d29b5bd90c852f5fd950bc1903796d5.tar.bz2 u-boot-ffc211fe4d29b5bd90c852f5fd950bc1903796d5.zip |
tools: kwbimage: Fix printf format warningsubmit/tizen/20220622.023017accepted/tizen/unified/20220622.133923
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>
[jh80.chung: cherry picked from mainline commit 3b5da64edfdc013b105573a20871659d37ab53de]
Change-Id: I058d4395fd8e6cab5ee593974173f97929ec6a55
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r-- | tools/kwbimage.c | 2 |
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; |