From: Nikhil Rao Date: Thu, 29 Nov 2018 08:00:17 +0000 (+0530) Subject: eventdev: fix error log in eth Rx adapter X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=91c1667da077976a8fe443cfc9281ef430c5532c;p=dpdk.git 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 --- 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); }