{
struct cubic *c = quic_cc_priv(&path->cc);
- chunk_appendf(buf, " cc: state=%s ssthresh=%u K=%u last_w_max=%u wdiff=%ld\n",
+ chunk_appendf(buf, " cc: state=%s ssthresh=%u K=%u last_w_max=%u wdiff=%lld\n",
quic_cc_state_str(c->state), c->ssthresh, c->K, c->last_w_max,
- (int64_t)(path->cwnd - c->last_w_max));
+ (long long)(path->cwnd - c->last_w_max));
}
struct quic_cc_algo quic_cc_algo_cubic = {
if (ctx->fields & QUIC_DUMP_FLD_PKTNS) {
pktns = qc->ipktns;
if (pktns) {
- chunk_appendf(&trash, " [initl] rx.ackrng=%-6zu tx.inflight=%-6zu(%ld%%)\n",
+ chunk_appendf(&trash, " [initl] rx.ackrng=%-6zu tx.inflight=%-6zu(%llu%%)\n",
pktns->rx.arngs.sz, pktns->tx.in_flight,
- pktns->tx.in_flight * 100 / qc->path->cwnd);
+ (ull)pktns->tx.in_flight * 100 / qc->path->cwnd);
}
pktns = qc->hpktns;
if (pktns) {
- chunk_appendf(&trash, " [hndshk] rx.ackrng=%-6zu tx.inflight=%-6zu(%ld%%)\n",
+ chunk_appendf(&trash, " [hndshk] rx.ackrng=%-6zu tx.inflight=%-6zu(%llu%%)\n",
pktns->rx.arngs.sz, pktns->tx.in_flight,
- pktns->tx.in_flight * 100 / qc->path->cwnd);
+ (ull)pktns->tx.in_flight * 100 / qc->path->cwnd);
}
pktns = qc->apktns;
if (pktns) {
- chunk_appendf(&trash, " [01rtt] rx.ackrng=%-6zu tx.inflight=%-6zu(%ld%%)\n",
+ chunk_appendf(&trash, " [01rtt] rx.ackrng=%-6zu tx.inflight=%-6zu(%llu%%)\n",
pktns->rx.arngs.sz, pktns->tx.in_flight,
- pktns->tx.in_flight * 100 / qc->path->cwnd);
+ (ull)pktns->tx.in_flight * 100 / qc->path->cwnd);
}
}