fixed: incorrect log channel

This commit is contained in:
skywind3000 2020-01-20 16:24:16 +08:00
parent 5cdea1eea0
commit cf683713cb

2
ikcp.c
View File

@ -813,7 +813,7 @@ int ikcp_input(ikcpcb *kcp, const char *data, long size)
} }
} }
if (ikcp_canlog(kcp, IKCP_LOG_IN_ACK)) { if (ikcp_canlog(kcp, IKCP_LOG_IN_ACK)) {
ikcp_log(kcp, IKCP_LOG_IN_DATA, ikcp_log(kcp, IKCP_LOG_IN_ACK,
"input ack: sn=%lu rtt=%ld rto=%ld", (unsigned long)sn, "input ack: sn=%lu rtt=%ld rto=%ld", (unsigned long)sn,
(long)_itimediff(kcp->current, ts), (long)_itimediff(kcp->current, ts),
(long)kcp->rx_rto); (long)kcp->rx_rto);