Re: [PATCH] net: stmmac: Use the right logging function in stmmac_mdio_register

From: Romain Perier
Date: Wed Aug 09 2017 - 10:58:33 EST


Hi Andrew,


Le 09/08/2017 Ã 16:56, Andrew Lunn a Ãcrit :
> On Wed, Aug 09, 2017 at 04:40:19PM +0200, Romain Perier wrote:
>> @@ -285,14 +286,14 @@ int stmmac_mdio_register(struct net_device *ndev)
>> irq_str = irq_num;
>> break;
>> }
>> - netdev_info(ndev, "PHY ID %08x at %d IRQ %s (%s)%s\n",
>> + dev_info(dev, "PHY ID %08x at %d IRQ %s (%s)%s\n",
>> phydev->phy_id, addr, irq_str, phydev_name(phydev),
>> act ? " active" : "");
> Hi Romain
>
> phy_attached_print() would be better.
>
> Andrew
Ok, I did not know this function, good to know. I will investigate

Thanks,
Romain