diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-26 12:30:00 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:42 -0400 |
commit | 09ecbdd8eef02228764018250b00ae8d8b64bb97 (patch) | |
tree | 71554e1d9094b279d0bdef5873c633f9922053f9 /src | |
parent | e62f3133bb0404b3c70dd59f37b2706bf75eb800 (diff) | |
download | tor-09ecbdd8eef02228764018250b00ae8d8b64bb97.tar.gz tor-09ecbdd8eef02228764018250b00ae8d8b64bb97.zip |
prop250: Fix format string encoding in log statement
Commit and reveal length macro changed from int to unsigned long int
(size_t) because of the sizeof().
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/or/shared_random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/shared_random.c b/src/or/shared_random.c index 5f61170d5e..79151255fa 100644 --- a/src/or/shared_random.c +++ b/src/or/shared_random.c @@ -248,7 +248,7 @@ commit_decode(const char *encoded, sr_commit_t *commit) if (decoded_len != SR_COMMIT_LEN) { log_warn(LD_BUG, "SR: Commit from authority %s decoded length doesn't " - "match the expected length (%d vs %d).", + "match the expected length (%d vs %lu).", sr_commit_get_rsa_fpr(commit), decoded_len, SR_COMMIT_LEN); goto error; } @@ -301,7 +301,7 @@ reveal_decode(const char *encoded, sr_commit_t *commit) if (decoded_len != SR_REVEAL_LEN) { log_warn(LD_BUG, "SR: Reveal from authority %s decoded length is " - "doesn't match the expected length (%d vs %d)", + "doesn't match the expected length (%d vs %lu)", sr_commit_get_rsa_fpr(commit), decoded_len, SR_REVEAL_LEN); goto error; } |