use H2O_SIZE_T_LONGEST_STR from
@@ -109,8 +109,8 @@ static inline void h2o_probe_log_response(h2o_req_t *req, uint64_t req_index)
H2O_PROBE_CONN(SEND_RESPONSE, req->conn, req_index, req->res.status);
if (H2O_CONN_IS_PROBED(SEND_RESPONSE_HEADER, req->conn)) {
if (req->res.content_length != SIZE_MAX) {
- char buf[sizeof(H2O_UINT64_LONGEST_STR)];
- size_t len = sprintf(buf, "%" PRIu64, req->res.content_length);
+ char buf[sizeof(H2O_SIZE_T_LONGEST_STR)];
+ size_t len = (size_t)sprintf(buf, "%zu", req->res.content_length);
h2o_probe_response_header(req, req_index, H2O_TOKEN_CONTENT_LENGTH->buf, h2o_iovec_init(buf, len));
}
size_t i;
