aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-10 08:29:45 -0600
committerJens Axboe <axboe@kernel.dk>2024-03-11 07:56:03 -0600
commit373b1cc074426039c93b11c95c98cb685fa2f960 (patch)
treedd04132d94129488a8169144fe8902f158f73c05
parent0411a91ca4c6724590d53361fb664966f32b1b93 (diff)
downloadliburing-373b1cc074426039c93b11c95c98cb685fa2f960.tar.gz
examples/proxy: make option print-out easier to read
Split it into first having a backend set of options printed, then a line with recv options, then one with send options. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--examples/proxy.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/proxy.c b/examples/proxy.c
index 6333f550..02961992 100644
--- a/examples/proxy.c
+++ b/examples/proxy.c
@@ -1985,13 +1985,14 @@ int main(int argc, char *argv[])
printf("Backend: sqpoll=%d, defer_tw=%d, fixed_files=%d "
"is_sink=%d, buf_size=%d, nr_bufs=%d, host=%s, send_port=%d "
- "receive_port=%d, napi=%d, napi_timeout=%d, sendmsg=%d, "
- "recvmsg=%d, recv_mshot=%d, send_buf_ring=%d, send bundle=%d "
- "recv bundle=%d\n",
+ "receive_port=%d, napi=%d, napi_timeout=%d\n",
sqpoll, defer_tw, fixed_files, is_sink,
buf_size, nr_bufs, host, send_port, receive_port,
- napi, napi_timeout, snd_msg, rcv_msg, recv_mshot,
- send_ring, snd_bundle, rcv_bundle);
+ napi, napi_timeout);
+ printf(" recv options: recvmsg=%d, recv_mshot=%d, recv_bundle=%d\n",
+ rcv_msg, recv_mshot, rcv_bundle);
+ printf(" send options: sendmsg=%d, send_ring=%d, send_bundle=%d\n",
+ snd_msg, send_ring, snd_bundle);
return event_loop(&ring, fd);
}