From: Khoronzhuk, Ivan Date: Fri, 17 Oct 2014 17:44:32 +0000 (+0300) Subject: net: phy: print a number of phy that is not found X-Git-Tag: v2015.01-rc1~125^2~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=adc9a79f3f7c6d79f32048598f4d18cf0f48180f;p=u-boot net: phy: print a number of phy that is not found In case when several Ethernet ports are supported it's convenient to see the number of phy that is not found. Acked-by: Vitaly Andrianov Signed-off-by: Ivan Khoronzhuk --- diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 1d6c14f2ad..99b0b83631 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -648,7 +648,7 @@ static struct phy_device *get_phy_device_by_mask(struct mii_dev *bus, if (phydev) return phydev; } - printf("Phy not found\n"); + printf("Phy %d not found\n", ffs(phy_mask) - 1); return phy_device_create(bus, ffs(phy_mask) - 1, 0xffffffff, interface); }