mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
net/mlx5: Remove newline at the end of a netlink error message
Netlink error messages should not have a newline at the end of the string. Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Gal Pressman <gal@nvidia.com> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Link: https://patch.msgid.link/20250226093904.6632-3-gal@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5ace19bd83
commit
3a2295ff3f
|
|
@ -242,7 +242,7 @@ static int mlx5_dpll_clock_quality_level_get(const struct dpll_device *dpll,
|
|||
return 0;
|
||||
}
|
||||
errout:
|
||||
NL_SET_ERR_MSG_MOD(extack, "Invalid clock quality level obtained from firmware\n");
|
||||
NL_SET_ERR_MSG_MOD(extack, "Invalid clock quality level obtained from firmware");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ static int mlx5e_tc_tun_parse_vxlan_gbp_option(struct mlx5e_priv *priv,
|
|||
gbp_mask = (u32 *)&enc_opts.mask->data[0];
|
||||
|
||||
if (*gbp_mask & ~VXLAN_GBP_MASK) {
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack, "Wrong VxLAN GBP mask(0x%08X)\n", *gbp_mask);
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack, "Wrong VxLAN GBP mask(0x%08X)", *gbp_mask);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2026,7 +2026,7 @@ static int mlx5e_get_module_eeprom_by_page(struct net_device *netdev,
|
|||
if (size_read < 0) {
|
||||
NL_SET_ERR_MSG_FMT_MOD(
|
||||
extack,
|
||||
"Query module eeprom by page failed, read %u bytes, err %d\n",
|
||||
"Query module eeprom by page failed, read %u bytes, err %d",
|
||||
i, size_read);
|
||||
return i;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1863,7 +1863,7 @@ int mlx5_esw_bridge_port_mdb_add(struct net_device *dev, u16 vport_num, u16 esw_
|
|||
"Failed to lookup bridge port to add MDB (MAC=%pM,vport=%u)\n",
|
||||
addr, vport_num);
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack,
|
||||
"Failed to lookup bridge port to add MDB (MAC=%pM,vport=%u)\n",
|
||||
"Failed to lookup bridge port to add MDB (MAC=%pM,vport=%u)",
|
||||
addr, vport_num);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -1876,7 +1876,7 @@ int mlx5_esw_bridge_port_mdb_add(struct net_device *dev, u16 vport_num, u16 esw_
|
|||
"Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n",
|
||||
addr, vid, vport_num);
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack,
|
||||
"Failed to lookup vlan metadata for MDB (MAC=%pM,vid=%u,vport=%u)\n",
|
||||
"Failed to lookup vlan metadata for MDB (MAC=%pM,vid=%u,vport=%u)",
|
||||
addr, vid, vport_num);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -1884,7 +1884,7 @@ int mlx5_esw_bridge_port_mdb_add(struct net_device *dev, u16 vport_num, u16 esw_
|
|||
|
||||
err = mlx5_esw_bridge_port_mdb_attach(dev, port, addr, vid);
|
||||
if (err) {
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack, "Failed to add MDB (MAC=%pM,vid=%u,vport=%u)\n",
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack, "Failed to add MDB (MAC=%pM,vid=%u,vport=%u)",
|
||||
addr, vid, vport_num);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user