[dpdk-dev] [PATCH 1/2] net/mlx5: fix errno object in probe code (minor)

Adrien Mazarguil adrien.mazarguil at 6wind.com
Thu May 24 14:17:55 CEST 2018


Fixes: a6d83b6a9209 ("net/mlx5: standardize on negative errno values")
Cc: Nélio Laranjeiro <nelio.laranjeiro at 6wind.com>

Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
---
 drivers/net/mlx5/mlx5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 8d1c2347e..bbe78de28 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1058,7 +1058,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;
 		}
-- 
2.11.0


More information about the dev mailing list