test/telemetry: fix typo at beginning of line
[dpdk.git] / examples / eventdev_pipeline / main.c
index 4ac5821..823f8b5 100644 (file)
@@ -296,7 +296,8 @@ signal_handler(int signum)
                RTE_ETH_FOREACH_DEV(portid) {
                        rte_event_eth_rx_adapter_stop(portid);
                        rte_event_eth_tx_adapter_stop(portid);
-                       rte_eth_dev_stop(portid);
+                       if (rte_eth_dev_stop(portid) < 0)
+                               printf("Failed to stop port %u", portid);
                }
 
                rte_eal_mp_wait_lcore();
@@ -395,7 +396,7 @@ main(int argc, char **argv)
        }
 
        int worker_idx = 0;
-       RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+       RTE_LCORE_FOREACH_WORKER(lcore_id) {
                if (lcore_id >= MAX_NUM_CORE)
                        break;