From 953e6913c1916c189f19bc149049da271ddccab1 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Thu, 28 Jun 2018 12:41:47 +0100 Subject: [PATCH] eal/bsd: fix memory segment index display Segment index was set to 0 at start but was never incremented. This has no consequences other than displayed number of segments allocated at initialization. Fix this by incrementing it after displaying. Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov --- lib/librte_eal/bsdapp/eal/eal_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_memory.c b/lib/librte_eal/bsdapp/eal/eal_memory.c index a5e034789a..ca06de2f85 100644 --- a/lib/librte_eal/bsdapp/eal/eal_memory.c +++ b/lib/librte_eal/bsdapp/eal/eal_memory.c @@ -200,7 +200,7 @@ rte_eal_hugepage_init(void) RTE_LOG(INFO, EAL, "Mapped memory segment %u @ %p: physaddr:0x%" PRIx64", len %zu\n", - seg_idx, addr, physaddr, page_sz); + seg_idx++, addr, physaddr, page_sz); total_mem += seg->len; } -- 2.20.1