From: Ivan Khoronzhuk Date: Fri, 17 Oct 2014 20:44:32 +0300 Subject: [U-Boot] [U-boot] [Patch v2 1/5] net: phy: print a number of phy that is not found In-Reply-To: <1413567876-19950-1-git-send-email-ivan.khoronzhuk@ti.com> References: <1413567876-19950-1-git-send-email-ivan.khoronzhuk@ti.com> Message-ID: <1413567876-19950-2-git-send-email-ivan.khoronzhuk@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- drivers/net/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 1d6c14f..99b0b83 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); } -- 1.8.3.2