net: phy: Print ethernet device in the link information
When multiple ethernet devices are in use it's interesting to know which one has link. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
be0404c21f
commit
0ca1d8a456
|
@ -49,7 +49,7 @@ int phy_update_status(struct phy_device *dev)
|
||||||
dev->adjust_link(edev);
|
dev->adjust_link(edev);
|
||||||
|
|
||||||
if (dev->link)
|
if (dev->link)
|
||||||
pr_info("%dMbps %s duplex link detected\n", dev->speed,
|
dev_info(&edev->dev, "%dMbps %s duplex link detected\n", dev->speed,
|
||||||
dev->duplex ? "full" : "half");
|
dev->duplex ? "full" : "half");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue