提交 1cb50726 编写于 作者: Y Yoshihiro Shimoda 提交者: 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: NDan Carpenter <error27@gmail.com>
Suggested-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Fixes: 3590918b ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: NSaeed Mahameed <saeed@kernel.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4dca1319
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册