浏览代码

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 <vitalya@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Khoronzhuk, Ivan 10 年之前
父节点
当前提交
adc9a79f3f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/phy/phy.c

+ 1 - 1
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);
 }