]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: dsa: lantiq_gswip: put a more descriptive error print in gswip_vlan_remove()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 15 Oct 2025 22:33:41 +0000 (23:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Oct 2025 00:54:59 +0000 (17:54 -0700)
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>
drivers/net/dsa/lantiq/lantiq_gswip.c

index d9a7a004f9eb5da822d81821ce596179bd0ddb47..cfdeb81485006c02a17d5003c8cdaa5bbcf7d345 100644 (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;
        }