Skip to content

Commit a576276

Browse files
vladimirolteankuba-moo
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Golle <[email protected]> Link: https://patch.msgid.link/abd4ec58e0f0f53eb3d7027097a20af0bd7b1d6d.1760566491.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 7ed1965 commit a576276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/dsa/lantiq/lantiq_gswip.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@ static int gswip_vlan_remove(struct gswip_priv *priv,
875875
}
876876

877877
if (idx == -1) {
878-
dev_err(priv->dev, "bridge to leave does not exists\n");
878+
dev_err(priv->dev, "Port %d cannot find VID %u of bridge %s\n",
879+
port, vid, bridge ? bridge->name : "(null)");
879880
return -ENOENT;
880881
}
881882

0 commit comments

Comments
 (0)