Commit 1cb50726 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by David S. Miller

net: ethernet: renesas: rswitch: Fix MAC address info

Smatch detected the following warning.

    drivers/net/ethernet/renesas/rswitch.c:1717 rswitch_init() warn:
    '%pM' cannot be followed by 'n'

The 'n' should be '\n'.
Reported-by: default avatarDan Carpenter <error27@gmail.com>
Suggested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Fixes: 3590918b ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: default avatarSaeed Mahameed <saeed@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4dca1319
...@@ -1714,7 +1714,7 @@ static int rswitch_init(struct rswitch_private *priv) ...@@ -1714,7 +1714,7 @@ static int rswitch_init(struct rswitch_private *priv)
} }
for (i = 0; i < RSWITCH_NUM_PORTS; i++) for (i = 0; i < RSWITCH_NUM_PORTS; i++)
netdev_info(priv->rdev[i]->ndev, "MAC address %pMn", netdev_info(priv->rdev[i]->ndev, "MAC address %pM\n",
priv->rdev[i]->ndev->dev_addr); priv->rdev[i]->ndev->dev_addr);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment