[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221118002724.996108-1-yoshihiro.shimoda.uh@renesas.com>
Date: Fri, 18 Nov 2022 09:27:24 +0900
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
To: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com
Cc: netdev@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
Dan Carpenter <error27@...il.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Saeed Mahameed <saeed@...nel.org>
Subject: [PATCH v2 net-next] 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 <error27@...il.com>
Suggested-by: Geert Uytterhoeven <geert+renesas@...der.be>
Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
Reviewed-by: Saeed Mahameed <saeed@...nel.org>
---
Changes from v1:
https://lore.kernel.org/all/20221115235519.679115-1-yoshihiro.shimoda.uh@renesas.com/
- Add Reviewed-by tag.
drivers/net/ethernet/renesas/rswitch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/renesas/rswitch.c b/drivers/net/ethernet/renesas/rswitch.c
index f3d27aef1286..51ce5c26631b 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;
--
2.25.1
Powered by blists - more mailing lists