Skip to content

Commit

Permalink
net: ethernet: renesas: rswitch: Fix MAC address info
Browse files Browse the repository at this point in the history
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: Dan Carpenter <error27@gmail.com>
Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Fixes: 3590918 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Saeed Mahameed <saeed@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yoshihiro Shimoda authored and David S. Miller committed Nov 21, 2022
1 parent 4dca131 commit 1cb5072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/renesas/rswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ static int rswitch_init(struct rswitch_private *priv)
}

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);

return 0;
Expand Down

0 comments on commit 1cb5072

Please sign in to comment.