Commit d0463012 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix a couple of printfs to be 64/intmax correct.

parent 85f57069
......@@ -325,7 +325,7 @@ cnt_done(struct sess *sp)
da = sp->t_end - sp->t_resp;
dh = sp->t_req - sp->t_open;
/* 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",
sp->xid, sp->t_req, sp->t_end, dh, dp, da);
}
......
......@@ -585,7 +585,7 @@ FetchBody(struct sess *sp)
if (mklen > 0) {
http_Unset(sp->obj->http, H_Content_Length);
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment