aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenpeng Liang <[email protected]>2021-06-16 18:01:24 +0800
committerDavid S. Miller <[email protected]>2021-06-16 12:34:07 -0700
commit450bf1f0c60e818d3da927f8a2d272559ef1915b (patch)
treef83654ca716194cabe6ac433dd4b0e94bac4b403
parent169d7a402dfae45e916e9c847f089482d65ddc4f (diff)
net: phy: print the function name by __func__ instead of an fixed string
It's better to use __func__ than a fixed string to print a function's name. Signed-off-by: Wenpeng Liang <[email protected]> Signed-off-by: Weihang Li <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
-rw-r--r--drivers/net/phy/mdio_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/mdio_device.c b/drivers/net/phy/mdio_device.c
index 0837319a52d7..c94cb5382dc9 100644
--- a/drivers/net/phy/mdio_device.c
+++ b/drivers/net/phy/mdio_device.c
@@ -77,7 +77,7 @@ int mdio_device_register(struct mdio_device *mdiodev)
{
int err;
- dev_dbg(&mdiodev->dev, "mdio_device_register\n");
+ dev_dbg(&mdiodev->dev, "%s\n", __func__);
err = mdiobus_register_device(mdiodev);
if (err)
@@ -188,7 +188,7 @@ int mdio_driver_register(struct mdio_driver *drv)
struct mdio_driver_common *mdiodrv = &drv->mdiodrv;
int retval;
- pr_debug("mdio_driver_register: %s\n", mdiodrv->driver.name);
+ pr_debug("%s: %s\n", __func__, mdiodrv->driver.name);
mdiodrv->driver.bus = &mdio_bus_type;
mdiodrv->driver.probe = mdio_probe;