From 2df860cb13e503fc8d80889bb93c20d5e8b24cd5 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 21 Dec 2020 08:29:09 +0100 Subject: [PATCH] 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. --- contrib/halog/halog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index 59b728274..820325ade 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,