projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db883b
)
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
Christopher Faulet
<cfaulet@haproxy.com>
Fri, 8 Jan 2021 10:37:47 +0000
(11:37 +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.
(cherry picked from commit
2df860cb13e503fc8d80889bb93c20d5e8b24cd5
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit
6b20b8b4fa5f9e3cc465a78a42b12fb1456489b7
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit
e7ec110111ed1b52b258421edc0d472171fbc52c
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
contrib/halog/halog.c
patch
|
blob
|
history
diff --git
a/contrib/halog/halog.c
b/contrib/halog/halog.c
index
3c785fc
..
ea47744
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,