From: Willy Tarreau Date: Mon, 21 Dec 2020 07:29:09 +0000 (+0100) Subject: CONTRIB: halog: fix build issue caused by %L printf format X-Git-Tag: v2.4-dev4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2df860cb13e503fc8d80889bb93c20d5e8b24cd5;p=thirdparty%2Fhaproxy.git CONTRIB: halog: fix build issue caused by %L printf format %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. --- diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index 59b728274f..820325ade1 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -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,