aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2021-01-12 22:02:28 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2021-01-12 22:05:04 +0000
commitd7493759fbfb382a008f4036d4cc80c82950daed (patch)
tree43dc95f14fa29dadaf79bf958ccfb898550420bd /tools
parentf6dc363f6dd2f6daa8cb59ecff6964fb86064f9f (diff)
downloadsrc-d7493759fbfb382a008f4036d4cc80c82950daed.tar.gz
src-d7493759fbfb382a008f4036d4cc80c82950daed.zip
netmap: pkt-gen: fix offset hex formatting
PR: 252594 Reported by: brpoole@vt.edu MFC after: 3 days
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/netmap/pkt-gen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/tools/netmap/pkt-gen.c b/tools/tools/netmap/pkt-gen.c
index e6237b8ba281..55504c09ae58 100644
--- a/tools/tools/netmap/pkt-gen.c
+++ b/tools/tools/netmap/pkt-gen.c
@@ -3176,17 +3176,17 @@ main(int arc, char **argv)
struct netmap_if *nifp = g.nmd->nifp;
struct nmreq_register *req = &g.nmd->reg;
- D("nifp at offset %"PRIu64", %d tx %d rx region %d",
+ D("nifp at offset %"PRIu64" ntxqs %d nrxqs %d memid %d",
req->nr_offset, req->nr_tx_rings, req->nr_rx_rings,
req->nr_mem_id);
for (i = 0; i < req->nr_tx_rings + req->nr_host_tx_rings; i++) {
struct netmap_ring *ring = NETMAP_TXRING(nifp, i);
- D(" TX%d at 0x%p slots %d", i,
+ D(" TX%d at offset %p slots %d", i,
(void *)((char *)ring - (char *)nifp), ring->num_slots);
}
for (i = 0; i < req->nr_rx_rings + req->nr_host_rx_rings; i++) {
struct netmap_ring *ring = NETMAP_RXRING(nifp, i);
- D(" RX%d at 0x%p slots %d", i,
+ D(" RX%d at offset %p slots %d", i,
(void *)((char *)ring - (char *)nifp), ring->num_slots);
}
}