Commit de9a2165 authored by LABBE Corentin's avatar LABBE Corentin Committed by David S. Miller

net: stmmac: replace hardcoded function name by __func__

Some printing have the function name hardcoded.
It is better to use __func__ instead.
Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 38ddc59d
...@@ -849,7 +849,7 @@ static int stmmac_init_phy(struct net_device *dev) ...@@ -849,7 +849,7 @@ static int stmmac_init_phy(struct net_device *dev)
snprintf(phy_id_fmt, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, bus_id, snprintf(phy_id_fmt, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, bus_id,
priv->plat->phy_addr); priv->plat->phy_addr);
netdev_dbg(priv->dev, "stmmac_init_phy: trying to attach to %s\n", netdev_dbg(priv->dev, "%s: trying to attach to %s\n", __func__,
phy_id_fmt); phy_id_fmt);
phydev = phy_connect(dev, phy_id_fmt, &stmmac_adjust_link, phydev = phy_connect(dev, phy_id_fmt, &stmmac_adjust_link,
...@@ -890,9 +890,8 @@ static int stmmac_init_phy(struct net_device *dev) ...@@ -890,9 +890,8 @@ static int stmmac_init_phy(struct net_device *dev)
if (phydev->is_pseudo_fixed_link) if (phydev->is_pseudo_fixed_link)
phydev->irq = PHY_POLL; phydev->irq = PHY_POLL;
netdev_dbg(priv->dev, netdev_dbg(priv->dev, "%s: attached to PHY (UID 0x%x) Link = %d\n",
"stmmac_init_phy: attached to PHY (UID 0x%x) Link = %d\n", __func__, phydev->phy_id, phydev->link);
phydev->phy_id, phydev->link);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment