From: Warren Turkal Date: Tue, 27 Jan 2015 23:04:16 +0000 (-0800) Subject: BUG/MINOR: stats:Fix incorrect printf type. X-Git-Tag: v1.6-dev1~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b197d7f433fc126f754df3923761d2dcc0893f69;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index a88e8acccb..133332fbf0 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"