Whenever a user or automation runs ethtool -m or an equivalent to mlx5 device & there is not any SFP module in that device the kernel log is spammed with ""query_mcia_reg failed: status:" which is really not that informative to the user who already knows that their command failed. Since the severity is logged at error severity the log message cannot be disabled via dyndbg etc... Signed-off-by: Matthew W Carlis 100.0% drivers/net/ethernet/mellanox/mlx5/core/ diff --git a/drivers/net/ethernet/mellanox/mlx5/core/port.c b/drivers/net/ethernet/mellanox/mlx5/core/port.c index aa9f2b0a77d3..e1c93a96e479 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/port.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/port.c @@ -310,7 +310,7 @@ static int mlx5_query_module_id(struct mlx5_core_dev *dev, int module_num, status = MLX5_GET(mcia_reg, out, status); if (status) { - mlx5_core_err(dev, "query_mcia_reg failed: status: 0x%x\n", + mlx5_core_dbg(dev, "query_mcia_reg failed: status: 0x%x\n", status); return -EIO; } @@ -394,7 +394,7 @@ static int mlx5_query_mcia(struct mlx5_core_dev *dev, status = MLX5_GET(mcia_reg, out, status); if (status) { - mlx5_core_err(dev, "query_mcia_reg failed: status: 0x%x\n", + mlx5_core_dbg(dev, "query_mcia_reg failed: status: 0x%x\n", status); return -EIO; } -- 2.46.0