net: dsa: lantiq_gswip: put a more descriptive error print in gswip_vlan_remove()

Improve the error message printed in case of a port VLAN entry not being
found upon removal.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/abd4ec58e0f0f53eb3d7027097a20af0bd7b1d6d.1760566491.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Vladimir Oltean
2025-10-15 23:33:41 +01:00
committed by Jakub Kicinski
parent 7ed1965f10
commit a576276266

View File

@@ -875,7 +875,8 @@ static int gswip_vlan_remove(struct gswip_priv *priv,
}
if (idx == -1) {
dev_err(priv->dev, "bridge to leave does not exists\n");
dev_err(priv->dev, "Port %d cannot find VID %u of bridge %s\n",
port, vid, bridge ? bridge->name : "(null)");
return -ENOENT;
}