mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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:
committed by
Jakub Kicinski
parent
7ed1965f10
commit
a576276266
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user