From 91c1667da077976a8fe443cfc9281ef430c5532c Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Thu, 29 Nov 2018 13:30:17 +0530 Subject: [PATCH] eventdev: fix error log in eth Rx adapter strerror() input parameter should be > 0. Coverity issue: 302864 Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter") Cc: stable@dpdk.org Signed-off-by: Nikhil Rao Reviewed-by: Ferruh Yigit --- lib/librte_eventdev/rte_event_eth_rx_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c index 8831bc35f9..8d178be150 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -912,7 +912,7 @@ rxa_intr_ring_enqueue(struct rte_event_eth_rx_adapter *rx_adapter, */ if (err) RTE_EDEV_LOG_ERR("Failed to enqueue interrupt" - " to ring: %s", strerror(err)); + " to ring: %s", strerror(-err)); else rte_eth_dev_rx_intr_disable(port_id, queue); } -- 2.20.1