diff --git a/xkcp_util.c b/xkcp_util.c index d33b1ae..15928a4 100644 --- a/xkcp_util.c +++ b/xkcp_util.c @@ -203,9 +203,9 @@ void xkcp_tcp_read_cb(struct bufferevent *bev, ikcpcb *kcp) static void dump_task(struct xkcp_task *task, struct bufferevent *bev, int index) { struct evbuffer *output = bufferevent_get_output(bev); evbuffer_add_printf(output, - "[%d]\t client [%d]\t conv [%d]\n\t ----> state [%d]\t nrcv_buf [%d]\t" - "nsnd_buf [%d]\t nrcv_que [%d]\t nsnd_que [%d]\t rcv_nxt [%d]\t probe [%d]\t" - "peek data [%d]\t stream [%d]\n", + "[%d]\t client [%d]\t conv [%d]:\n --->state [%d] nrcv_buf [%d]" + "nsnd_buf [%d] nrcv_que [%d] nsnd_que [%d] rcv_nxt [%d] probe [%d]" + "peek data [%d] stream [%d]\n", index, bufferevent_getfd(task->bev), task->kcp->conv, task->kcp->state, task->kcp->nrcv_buf, task->kcp->nsnd_buf, task->kcp->nrcv_que, task->kcp->nsnd_que, task->kcp->rcv_nxt, task->kcp->probe,