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

From: Andrew Lunn
Date: Wed Aug 09 2017 - 10:56:58 EST


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