diff options
author | Edward Cree <ecree.xilinx@gmail.com> | 2022-10-18 15:37:28 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-10-19 13:00:05 -0700 |
commit | ad1c80d5f777b86d071e90791d008bde393bd63f (patch) | |
tree | ad2e1363b385b7fd34fefcac59ae2cc5074b595d /drivers/net/ethernet/sfc/mae.c | |
parent | 51c352bdbcd23d7ce46b06c1e64c82754dc44044 (diff) | |
download | linux-ad1c80d5f777b86d071e90791d008bde393bd63f.tar.gz linux-ad1c80d5f777b86d071e90791d008bde393bd63f.tar.bz2 linux-ad1c80d5f777b86d071e90791d008bde393bd63f.zip |
sfc: use formatted extacks instead of efx_tc_err()
Since we can now get a formatted message back to the user with
NL_SET_ERR_MSG_FMT_MOD(), there's no need for our special logging.
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/sfc/mae.c')
-rw-r--r-- | drivers/net/ethernet/sfc/mae.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/mae.c b/drivers/net/ethernet/sfc/mae.c index 874c765b2465..6f472ea0638a 100644 --- a/drivers/net/ethernet/sfc/mae.c +++ b/drivers/net/ethernet/sfc/mae.c @@ -265,9 +265,8 @@ int efx_mae_match_check_caps(struct efx_nic *efx, rc = efx_mae_match_check_cap_typ(supported_fields[MAE_FIELD_INGRESS_PORT], ingress_port_mask_type); if (rc) { - efx_tc_err(efx, "No support for %s mask in field ingress_port\n", - mask_type_name(ingress_port_mask_type)); - NL_SET_ERR_MSG_MOD(extack, "Unsupported mask type for ingress_port"); + NL_SET_ERR_MSG_FMT_MOD(extack, "No support for %s mask in field ingress_port", + mask_type_name(ingress_port_mask_type)); return rc; } return 0; |