diff options
author | Wojciech Lukowicz <wlukowicz01@gmail.com> | 2024-02-20 22:09:06 +0000 |
---|---|---|
committer | Wojciech Lukowicz <wlukowicz01@gmail.com> | 2024-02-20 22:20:15 +0000 |
commit | e00c84cf052e73cdb88c0ced5bd2ee75d6f682f3 (patch) | |
tree | 71529dc7af97fda1390e1e0974c8c20bc6c29527 | |
parent | 3ae058eb09afaa2bce9ecd3c410f5c6476008e47 (diff) | |
download | liburing-e00c84cf052e73cdb88c0ced5bd2ee75d6f682f3.tar.gz |
examples/proxy: fix verbose log format
Remove 0x prefix to be consistent with other log messages, plus on some
systems it ends up being printed twice, e.g.:
0: add bid 0, data 0x0x71b000
Fixes: 6a5174b3dccf ("examples/proxy: add support for provided buffers for sends")
Signed-off-by: Wojciech Lukowicz <wlukowicz01@gmail.com>
-rw-r--r-- | examples/proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/proxy.c b/examples/proxy.c index 6207156b..48de55e2 100644 --- a/examples/proxy.c +++ b/examples/proxy.c @@ -269,7 +269,7 @@ static int setup_recv_ring(struct io_uring *ring, struct conn *c) ptr = cbr->buf; for (i = 0; i < nr_bufs; i++) { - vlog("%d: add bid %d, data 0x%p\n", c->tid, i, ptr); + vlog("%d: add bid %d, data %p\n", c->tid, i, ptr); io_uring_buf_ring_add(cbr->br, ptr, buf_size, i, br_mask, i); ptr += buf_size; } |