Skip to content

Commit

Permalink
net/mlx5: Fix error message when failing to allocate device memory
Browse files Browse the repository at this point in the history
Fix spacing for the error and also the correct error code pointer.

Fixes: c9b9dcb ("net/mlx5: Move device memory management to mlx5_core")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
roidayan authored and Saeed Mahameed committed May 23, 2023
1 parent be071cd commit a657351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ static int mlx5_init_once(struct mlx5_core_dev *dev)

dev->dm = mlx5_dm_create(dev);
if (IS_ERR(dev->dm))
mlx5_core_warn(dev, "Failed to init device memory%d\n", err);
mlx5_core_warn(dev, "Failed to init device memory %ld\n", PTR_ERR(dev->dm));

dev->tracer = mlx5_fw_tracer_create(dev);
dev->hv_vhca = mlx5_hv_vhca_create(dev);
Expand Down

0 comments on commit a657351

Please sign in to comment.