commit 0f60a1d33c64ec71eea3ea95e2a87e32dd74421c Author: Nick Mathewson nickm@torproject.org 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@lists.torproject.org