[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bc0300eb01494e2b9b190c5d3ac7bc80@huawei.com>
Date: Wed, 16 Jun 2021 08:14:13 +0000
From: liweihang <liweihang@...wei.com>
To: Andrew Lunn <andrew@...n.ch>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"kuba@...nel.org" <kuba@...nel.org>,
"hkallweit1@...il.com" <hkallweit1@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Linuxarm <linuxarm@...wei.com>,
liangwenpeng <liangwenpeng@...wei.com>
Subject: Re: [PATCH net-next 6/8] net: phy: print the function name by
__func__ instead of an fixed string
On 2021/6/12 0:05, Andrew Lunn wrote:
>> @@ -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);
> It would be nice to make this
>
> dev_dbg(&mdiodev->dev, "%s: %s\n", __func__, mdiodrv->driver.name);
>
> Andrew
>
There is no way to get mdiodev from a pointer to mdio_driver, I don't think
there's a direct relationship between them. So I will keep using pr_debug :)
Thanks
Weihang
Powered by blists - more mailing lists