]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
prop250: Fix format string encoding in log statement
authorDavid Goulet <dgoulet@torproject.org>
Thu, 26 May 2016 16:30:00 +0000 (12:30 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 1 Jul 2016 18:01:42 +0000 (14:01 -0400)
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>
src/or/shared_random.c

index 5f61170d5e476561e617704dc19f2ce448bf9b42..79151255fad8175d9a5fb1d75d7e542c150fbe30 100644 (file)
@@ -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;
   }