From b197d7f433fc126f754df3923761d2dcc0893f69 Mon Sep 17 00:00:00 2001 From: Warren Turkal Date: Tue, 27 Jan 2015 15:04:16 -0800 Subject: [PATCH] BUG/MINOR: stats:Fix incorrect printf type. The value is defined in include/types/global.h to be an unsigned int. The type format in the printf is for a signed int. This eventually wraps around. WT: This bug was introduced in 1.5. --- src/dumpstats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index a88e8accc..133332fbf 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -2492,7 +2492,7 @@ static int stats_dump_info_to_buffer(struct stream_interface *si) "Hard_maxconn: %d\n" "CurrConns: %d\n" "CumConns: %d\n" - "CumReq: %d\n" + "CumReq: %u\n" #ifdef USE_OPENSSL "MaxSslConns: %d\n" "CurrSslConns: %d\n"