diff options
author | Yoshihiro Shimoda <[email protected]> | 2022-11-18 09:27:24 +0900 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-11-21 12:57:18 +0000 |
commit | 1cb50726329070a6e3235b6bac38dfb8d5fd18c2 (patch) | |
tree | d89a7876ea41e16b4b9d03e9280972035f752309 | |
parent | 4dca1319a796bc4c17e57a8727c1d95cecc892da (diff) |
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: Dan Carpenter <[email protected]>
Suggested-by: Geert Uytterhoeven <[email protected]>
Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Reviewed-by: Saeed Mahameed <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | drivers/net/ethernet/renesas/rswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/rswitch.c b/drivers/net/ethernet/renesas/rswitch.c index c098b27093ea..e42ceaa0099f 100644 --- a/drivers/net/ethernet/renesas/rswitch.c +++ b/drivers/net/ethernet/renesas/rswitch.c @@ -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; |