From: Martin Blumenstingl Date: Wed, 18 May 2022 22:00:51 +0000 (+0200) Subject: net: dsa: lantiq_gswip: Fix typo in gswip_port_fdb_dump() error print X-Git-Tag: v5.19-rc1~159^2~52^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4951995dbe9dd0c3fbe1fbfdb760b05a797700f1;p=thirdparty%2Fkernel%2Flinux.git net: dsa: lantiq_gswip: Fix typo in gswip_port_fdb_dump() error print gswip_port_fdb_dump() reads the MAC bridge entries. The error message should say "failed to read mac bridge entry". While here, also add the index to the error print so humans can get to the cause of the problem easier. Acked-by: Hauke Mehrtens Reviewed-by: Vladimir Oltean Signed-off-by: Martin Blumenstingl Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 0c313db234510..8af4def38a988 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1426,8 +1426,9 @@ static int gswip_port_fdb_dump(struct dsa_switch *ds, int port, err = gswip_pce_table_entry_read(priv, &mac_bridge); if (err) { - dev_err(priv->dev, "failed to write mac bridge: %d\n", - err); + dev_err(priv->dev, + "failed to read mac bridge entry %d: %d\n", + i, err); return err; }