]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Improve log message in hs_service.c
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Mon, 29 Oct 2018 16:07:41 +0000 (17:07 +0100)
committerGeorge Kadianakis <desnacked@riseup.net>
Thu, 1 Nov 2018 10:40:52 +0000 (12:40 +0200)
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
src/feature/hs/hs_service.c

index 7d56c9e2ad99b6b12475328abd8fb2ac0b4a5905..c288e28e800e5cda73b47396ebabbe13918c7d54 100644 (file)
@@ -2931,8 +2931,8 @@ set_descriptor_revision_counter(hs_service_descriptor_t *hs_desc, time_t now,
   /* The OPE module returns CRYPTO_OPE_ERROR in case of errors. */
   tor_assert_nonfatal(rev_counter < CRYPTO_OPE_ERROR);
 
-  log_info(LD_REND, "Encrypted revision counter %d to %ld",
-           (int) seconds_since_start_of_srv, (long int) rev_counter);
+  log_info(LD_REND, "Encrypted revision counter %d to %" PRIu64,
+           (int) seconds_since_start_of_srv, rev_counter);
 
   hs_desc->desc->plaintext_data.revision_counter = rev_counter;
 }