]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats:Fix incorrect printf type.
authorWarren Turkal <wt@signalfuse.com>
Tue, 27 Jan 2015 23:04:16 +0000 (15:04 -0800)
committerWilly Tarreau <w@1wt.eu>
Sat, 31 Jan 2015 12:48:27 +0000 (13:48 +0100)
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

index a88e8acccbf4471cefb95b98c1b4271661b91261..133332fbf07192dde25e6372a51cd36b56481c9f 100644 (file)
@@ -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"