[PATCH 2/4] net: phy: printk issues fixed

From: Jean-Michel Hautbois
Date: Sun Dec 19 2010 - 05:59:37 EST


When calling net link change, pr_info and printk where interleaved.
Changed the way to print messages.

Signed-off-by: Jean-Michel Hautbois <jhautbois@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/