Messages in this thread Patch in this message | | | From | Jean-Michel Hautbois <> | Subject | [PATCH 2/4] net: phy: printk issues fixed | Date | Sun, 19 Dec 2010 11:58:49 +0100 |
| |
When calling net link change, pr_info and printk where interleaved. Changed the way to print messages.
Signed-off-by: Jean-Michel Hautbois <jhautbois@gmail.com> --- drivers/net/phy/phy.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 5f23e8e..4ab48d7 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -44,14 +44,14 @@ */ void phy_print_status(struct phy_device *phydev) { - pr_info("PHY: %s - Link is %s", dev_name(&phydev->dev), - phydev->link ? "Up" : "Down"); if (phydev->link) - printk(" - %d/%s", phydev->speed, - DUPLEX_FULL == phydev->duplex ? - "Full" : "Half"); - - printk("\n"); + pr_info("PHY: %s - Link is up - %d/%s\n", + dev_name(&phydev->dev), + phydev->speed, + phydev->duplex == DUPLEX_FULL ? "Full" : "Half"); + else + pr_info("PHY: %s - Link is down\n", + dev_name(&phydev->dev)); } EXPORT_SYMBOL(phy_print_status); -- 1.7.0.4
| |