]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: halog: fix build issue caused by %L printf format
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Dec 2020 07:29:09 +0000 (08:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Dec 2020 07:43:09 +0000 (08:43 +0100)
%Ld isn't standard, %lld is more portable. In addition, the format
should be %llu since the printed values are unsigned. This should
address issue #1013.

contrib/halog/halog.c

index 59b728274f15444f4cfa3495bbdb0499e7064426..820325ade179df1f92e3467f2cb3899f737127ab 100644 (file)
@@ -1288,7 +1288,7 @@ int main(int argc, char **argv)
                node = eb_last(&timers[0]);
                while (node) {
                        ustat = container_of(node, struct url_stat, node.url.node);
-                       printf("%d %d %Ld %Ld %Ld %Ld %Ld %Ld %s\n",
+                       printf("%d %d %llu %llu %llu %llu %llu %llu %s\n",
                               ustat->nb_req,
                               ustat->nb_err,
                               ustat->total_time,