staging: fsl-dpaa2/ethsw: reword error message
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 13 Aug 2019 12:43:05 +0000 (15:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 14:46:25 +0000 (16:46 +0200)
In the current state, the dpaa2-ethsw driver supports only one bridge
per DPSW object. Reword the error message so that this information is
much more clear.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/1565700187-16048-9-git-send-email-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c

index b69b2b7..28da109 100644 (file)
@@ -1119,8 +1119,7 @@ static int port_bridge_join(struct net_device *netdev,
                if (ethsw->ports[i]->bridge_dev &&
                    (ethsw->ports[i]->bridge_dev != upper_dev)) {
                        netdev_err(netdev,
-                                  "Another switch port is connected to %s\n",
-                                  ethsw->ports[i]->bridge_dev->name);
+                                  "Only one bridge supported per DPSW object!\n");
                        return -EINVAL;
                }