net/mlx5: fix errno object in probe function

Fixes: a6d83b6a92 ("net/mlx5: standardize on negative errno values")
Cc: stable@dpdk.org

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
This commit is contained in:
Adrien Mazarguil 2018-05-24 14:17:55 +02:00 committed by Shahaf Shuler
parent c93adccc97
commit 8c3c2372ed

View File

@ -1062,7 +1062,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
DRV_LOG(ERR,
"port %u cannot get MAC address, is mlx5_en"
" loaded? (errno: %s)",
eth_dev->data->port_id, strerror(errno));
eth_dev->data->port_id, strerror(rte_errno));
err = ENODEV;
goto port_error;
}