[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] connstats: use correct formatter for uint32_t.



commit 0f60a1d33c64ec71eea3ea95e2a87e32dd74421c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Jul 10 09:50:04 2020 -0400

    connstats: use correct formatter for uint32_t.
    
    We have had no reports of negative counts here, so it is probably
    safe not to backport this.
---
 src/feature/stats/connstats.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/feature/stats/connstats.c b/src/feature/stats/connstats.c
index 73bc8d7cc..f0c786efb 100644
--- a/src/feature/stats/connstats.c
+++ b/src/feature/stats/connstats.c
@@ -232,8 +232,10 @@ conn_stats_format(time_t now)
 
   format_iso_time(written_at, now);
   tor_asprintf(&result,
-               "conn-bi-direct %s (%d s) %d,%d,%d,%d\n"
-               "ipv6-conn-bi-direct %s (%d s) %d,%d,%d,%d\n",
+               "conn-bi-direct %s (%d s) "
+                    "%"PRIu32",%"PRIu32",%"PRIu32",%"PRIu32"\n"
+               "ipv6-conn-bi-direct %s (%d s) "
+                    "%"PRIu32",%"PRIu32",%"PRIu32",%"PRIu32"\n",
                written_at,
                (unsigned) (now - start_of_conn_stats_interval),
                counts.below_threshold,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits