git: d7493759fbfb - main - netmap: pkt-gen: fix offset hex formatting
Vincenzo Maffione
vmaffione at FreeBSD.org
Tue Jan 12 22:05:30 UTC 2021
The branch main has been updated by vmaffione:
URL: https://cgit.FreeBSD.org/src/commit/?id=d7493759fbfb382a008f4036d4cc80c82950daed
commit d7493759fbfb382a008f4036d4cc80c82950daed
Author: Vincenzo Maffione <vmaffione at FreeBSD.org>
AuthorDate: 2021-01-12 22:02:28 +0000
Commit: Vincenzo Maffione <vmaffione at FreeBSD.org>
CommitDate: 2021-01-12 22:05:04 +0000
netmap: pkt-gen: fix offset hex formatting
PR: 252594
Reported by: brpoole at vt.edu
MFC after: 3 days
---
tools/tools/netmap/pkt-gen.c | 6 +++---
1 file 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);
}
}
More information about the dev-commits-src-all
mailing list