Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
d0463012
Commit
d0463012
authored
Apr 18, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of printfs to be 64/intmax correct.
parent
85f57069
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cache_center.c
bin/varnishd/cache_center.c
+1
-1
cache_fetch.c
bin/varnishd/cache_fetch.c
+1
-1
No files found.
bin/varnishd/cache_center.c
View file @
d0463012
...
@@ -325,7 +325,7 @@ cnt_done(struct sess *sp)
...
@@ -325,7 +325,7 @@ cnt_done(struct sess *sp)
da
=
sp
->
t_end
-
sp
->
t_resp
;
da
=
sp
->
t_end
-
sp
->
t_resp
;
dh
=
sp
->
t_req
-
sp
->
t_open
;
dh
=
sp
->
t_req
-
sp
->
t_open
;
/* XXX: Add StatReq == StatSess */
/* XXX: Add StatReq == StatSess */
WSP
(
sp
,
SLT_Length
,
"%
u"
,
sp
->
acct_req
.
bodybytes
);
WSP
(
sp
,
SLT_Length
,
"%
ju"
,
(
uintmax_t
)
sp
->
acct_req
.
bodybytes
);
WSL
(
sp
->
wrk
,
SLT_ReqEnd
,
sp
->
id
,
"%u %.9f %.9f %.9f %.9f %.9f"
,
WSL
(
sp
->
wrk
,
SLT_ReqEnd
,
sp
->
id
,
"%u %.9f %.9f %.9f %.9f %.9f"
,
sp
->
xid
,
sp
->
t_req
,
sp
->
t_end
,
dh
,
dp
,
da
);
sp
->
xid
,
sp
->
t_req
,
sp
->
t_end
,
dh
,
dp
,
da
);
}
}
...
...
bin/varnishd/cache_fetch.c
View file @
d0463012
...
@@ -585,7 +585,7 @@ FetchBody(struct sess *sp)
...
@@ -585,7 +585,7 @@ FetchBody(struct sess *sp)
if
(
mklen
>
0
)
{
if
(
mklen
>
0
)
{
http_Unset
(
sp
->
obj
->
http
,
H_Content_Length
);
http_Unset
(
sp
->
obj
->
http
,
H_Content_Length
);
http_PrintfHeader
(
sp
->
wrk
,
sp
->
fd
,
sp
->
obj
->
http
,
http_PrintfHeader
(
sp
->
wrk
,
sp
->
fd
,
sp
->
obj
->
http
,
"Content-Length: %
u"
,
sp
->
obj
->
len
);
"Content-Length: %
jd"
,
(
intmax_t
)
sp
->
obj
->
len
);
}
}
if
(
cls
)
if
(
cls
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment