[PATCH net-next] net: ethernet: renesas: Add missing slash in rswitch_init

YueHaibing posted 1 patch 3 years, 4 months ago
drivers/net/ethernet/renesas/rswitch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH net-next] net: ethernet: renesas: Add missing slash in rswitch_init
Posted by YueHaibing 3 years, 4 months ago
Fix smatch warning:

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

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 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 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;
-- 
2.20.1
Re: [PATCH net-next] net: ethernet: renesas: Add missing slash in rswitch_init
Posted by patchwork-bot+netdevbpf@kernel.org 3 years, 4 months ago
Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Mon, 21 Nov 2022 17:41:38 +0800 you wrote:
> Fix smatch warning:
> 
> drivers/net/ethernet/renesas/rswitch.c:1717
>  rswitch_init() warn: '%pM' cannot be followed by 'n'
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> 
> [...]

Here is the summary with links:
  - [net-next] net: ethernet: renesas: Add missing slash in rswitch_init
    https://git.kernel.org/netdev/net-next/c/1cb507263290

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
RE: [PATCH net-next] net: ethernet: renesas: Add missing slash in rswitch_init
Posted by Yoshihiro Shimoda 3 years, 4 months ago
Hi,

> From: YueHaibing, Sent: Monday, November 21, 2022 6:42 PM
> 
> Fix smatch warning:
> 
> drivers/net/ethernet/renesas/rswitch.c:1717
>  rswitch_init() warn: '%pM' cannot be followed by 'n'

Thank you for the patch!
However, I have submitted such a patch as following:
https://lore.kernel.org/all/20221118002724.996108-1-yoshihiro.shimoda.uh@renesas.com/

Best regards,
Yoshihiro Shimoda