From: Florian Fainelli Date: Wed, 12 Feb 2014 01:27:34 +0000 (-0800) Subject: net: phy: update phy_print_status to show pause settings X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=df40cc887924f64810e2dc8bd810aec5b37061c9;p=linux-beck.git 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 Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index c35b2e73168a..8ae22603b1b1 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -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"); }