net/mlx5: fix error message in probe function
Error values passed to strerror() must be positive.
Fixes: 012ad9944d
("net/mlx5: fix probe return value polarity")
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:
parent
c6ce7e34ad
commit
93068a9d5a
@ -955,9 +955,9 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
|
||||
priv->mtu = ETHER_MTU;
|
||||
err = mlx5_args(&config, pci_dev->device.devargs);
|
||||
if (err) {
|
||||
DRV_LOG(ERR, "failed to process device arguments: %s",
|
||||
strerror(err));
|
||||
err = rte_errno;
|
||||
DRV_LOG(ERR, "failed to process device arguments: %s",
|
||||
strerror(rte_errno));
|
||||
goto port_error;
|
||||
}
|
||||
err = mlx5_glue->query_device_ex(ctx, NULL, &device_attr_ex);
|
||||
|
Loading…
Reference in New Issue
Block a user