tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 0f60a1d33c64ec71eea3ea95e2a87e32dd74421c
parent dbdf8bebde8b0f18009c7e9c6e89406f241ad0e6
Author: Nick Mathewson <nickm@torproject.org>
Date:   Fri, 10 Jul 2020 09:50:04 -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.

Diffstat:
Msrc/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 @@ -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,