Browse Source

Improve log message in hs_service.c

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Fernando Fernandez Mancera 6 years ago
parent
commit
f60607ee96
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/feature/hs/hs_service.c

+ 2 - 2
src/feature/hs/hs_service.c

@@ -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;
 }