net: phy: update phy_print_status to show pause settings

Update phy_print_status() to also display the PHY device pause settings
(rx/tx or off).

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Florian Fainelli 2014-02-11 17:27:34 -08:00 committed by David S. Miller
parent 43b6329f98
commit df40cc8879

View file

@ -45,9 +45,11 @@
void phy_print_status(struct phy_device *phydev)
{
if (phydev->link) {
netdev_info(phydev->attached_dev, "Link is Up - %d/%s\n",
netdev_info(phydev->attached_dev,
"Link is Up - %d/%s - flow control %s\n",
phydev->speed,
DUPLEX_FULL == phydev->duplex ? "Full" : "Half");
DUPLEX_FULL == phydev->duplex ? "Full" : "Half",
phydev->pause ? "rx/tx" : "off");
} else {
netdev_info(phydev->attached_dev, "Link is Down\n");
}