summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ring_rx.c12
-rw-r--r--ring_tx.c2
2 files changed, 10 insertions, 4 deletions
diff --git a/ring_rx.c b/ring_rx.c
index 3c701da..54505da 100644
--- a/ring_rx.c
+++ b/ring_rx.c
@@ -98,9 +98,15 @@ retry:
ring->mm_len = ring->layout.tp_block_size * ring->layout.tp_block_nr;
if (verbose) {
- printf("RX: %.2Lf MiB, %u Frames, each %u Byte allocated\n",
- (long double) ring->mm_len / (1 << 20),
- ring->layout.tp_frame_nr, ring->layout.tp_frame_size);
+ if (!v3) {
+ printf("RX,V2: %.2Lf MiB, %u Frames, each %u Byte allocated\n",
+ (long double) ring->mm_len / (1 << 20),
+ ring->layout.tp_frame_nr, ring->layout.tp_frame_size);
+ } else {
+ printf("RX,V3: %.2Lf MiB, %u Blocks, each %u Byte allocated\n",
+ (long double) ring->mm_len / (1 << 20),
+ ring->layout.tp_block_nr, ring->layout.tp_block_size);
+ }
}
}
diff --git a/ring_tx.c b/ring_tx.c
index 549f89c..100b3f0 100644
--- a/ring_tx.c
+++ b/ring_tx.c
@@ -89,7 +89,7 @@ retry:
ring->mm_len = ring->layout.tp_block_size * ring->layout.tp_block_nr;
if (verbose) {
- printf("TX: %.2Lf MiB, %u Frames, each %u Byte allocated\n",
+ printf("TX,V2: %.2Lf MiB, %u Frames, each %u Byte allocated\n",
(long double) ring->mm_len / (1 << 20),
ring->layout.tp_frame_nr, ring->layout.tp_frame_size);
}