From: Ioana Ciornei Date: Tue, 13 Aug 2019 12:43:05 +0000 (+0300) Subject: staging: fsl-dpaa2/ethsw: reword error message X-Git-Tag: v5.4-rc1~134^2~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38fc21369eaaac937a3bbb0a445014731dd32566;p=platform%2Fkernel%2Flinux-rpi.git staging: fsl-dpaa2/ethsw: reword error message 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 Signed-off-by: Ioana Ciornei Link: https://lore.kernel.org/r/1565700187-16048-9-git-send-email-ioana.ciornei@nxp.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c index b69b2b7..28da109 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c @@ -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; }