diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2020-09-21 09:13:00 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-28 10:27:01 +0200 |
commit | 69f1ff152c6bac92aed3e06d9fa0002a5ae559b8 (patch) | |
tree | 0ff01a1be32bf4cbe9e8dc4ac290c8476edbf468 /crypto | |
parent | cbfaec5633457fb5dae949be1665ca427bbad067 (diff) | |
download | barebox-69f1ff152c6bac92aed3e06d9fa0002a5ae559b8.tar.gz barebox-69f1ff152c6bac92aed3e06d9fa0002a5ae559b8.tar.xz |
rsa: fix print format specifiers in debug()
The arguments after the format string are of type uint32_t and size_t.
Use the correct format specifiers.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa.c b/crypto/rsa.c index 64241854c8..1aea738e52 100644 --- a/crypto/rsa.c +++ b/crypto/rsa.c @@ -317,7 +317,7 @@ int rsa_verify(const struct rsa_public_key *key, const uint8_t *sig, return -EOPNOTSUPP; if (sig_len != (key->len * sizeof(uint32_t))) { - debug("Signature is of incorrect length %d, should be %d\n", sig_len, + debug("Signature is of incorrect length %u, should be %zu\n", sig_len, key->len * sizeof(uint32_t)); ret = -EINVAL; goto out_free_digest; |