From: Honnappa Nagarahalli Date: Sun, 25 Oct 2020 05:45:54 +0000 (-0500) Subject: test/ring: fix memory dump X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3097cc9f03cda4f836aac16c6a6d17f9ea680545;p=dpdk.git test/ring: fix memory dump Pass the correct number of bytes to dump the memory. Fixes: bf28df24e915 ("test/ring: add contention stress test") Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar Acked-by: Konstantin Ananyev --- diff --git a/app/test/test_ring_stress_impl.h b/app/test/test_ring_stress_impl.h index 3b9a480eb9..f9ca63b908 100644 --- a/app/test/test_ring_stress_impl.h +++ b/app/test/test_ring_stress_impl.h @@ -159,7 +159,7 @@ check_updt_elem(struct ring_elem *elm[], uint32_t num, "offending object: %p\n", __func__, rte_lcore_id(), num, i, elm[i]); rte_memdump(stdout, "expected", check, sizeof(*check)); - rte_memdump(stdout, "result", elm[i], sizeof(elm[i])); + rte_memdump(stdout, "result", elm[i], sizeof(*elm[i])); rte_spinlock_unlock(&dump_lock); return -EINVAL; }