projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7ead07
)
CONTRIB: halog: fix build issue caused by %L printf format
author
Willy Tarreau
<w@1wt.eu>
Mon, 21 Dec 2020 07:29:09 +0000
(08:29 +0100)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/contrib/halog/halog.c
b/contrib/halog/halog.c
index
59b7282
..
820325a
100644
(file)
--- 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,