The software eventdev PMD reports todo-fix-name as the
device name. Looks like simple fix.

Fixes: c66baa68e453 ("event/sw: add dump function for easier debugging")
Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 drivers/event/sw/sw_evdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c
index f93313b31b5c..c9efe35bf428 100644
--- a/drivers/event/sw/sw_evdev.c
+++ b/drivers/event/sw/sw_evdev.c
@@ -622,8 +622,8 @@ sw_dump(struct rte_eventdev *dev, FILE *f)
                        "Ordered", "Atomic", "Parallel", "Directed"
        };
        uint32_t i;
-       fprintf(f, "EventDev %s: ports %d, qids %d\n", "todo-fix-name",
-                       sw->port_count, sw->qid_count);
+       fprintf(f, "EventDev %s: ports %d, qids %d\n",
+               dev->data->name, sw->port_count, sw->qid_count);
 
        fprintf(f, "\trx   %"PRIu64"\n\tdrop %"PRIu64"\n\ttx   %"PRIu64"\n",
                sw->stats.rx_pkts, sw->stats.rx_dropped, sw->stats.tx_pkts);
-- 
2.35.1

Reply via email to