Patchwork net/nuc900: change dev_warn to dev_dbg when link down occurs

login
register
mail settings
Submitter Wan ZongShun
Date Oct. 15, 2010, 3 p.m.
Message ID <4CB86C87.5010207@gmail.com>
Download mbox | patch
Permalink /patch/67966/
State Accepted
Delegated to: David Miller
Headers show

Comments

Wan ZongShun - Oct. 15, 2010, 3 p.m.
Hi David,

When I didnot connect the net cable, the warning infos are always showed,
so I change the dev_warn to dev_dbg.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>

---
  drivers/net/arm/w90p910_ether.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Oct. 21, 2010, 10:16 a.m.
From: Wan ZongShun <mcuos.com@gmail.com>
Date: Fri, 15 Oct 2010 23:00:23 +0800

> Hi David,
> 
> When I didnot connect the net cable, the warning infos are always
> showed,
> so I change the dev_warn to dev_dbg.
> 
> Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>

Your patch does not apply to the current tree.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/arm/w90p910_ether.c b/drivers/net/arm/w90p910_ether.c
index 4545d5a..98f8ada 100644
--- a/drivers/net/arm/w90p910_ether.c
+++ b/drivers/net/arm/w90p910_ether.c
@@ -213,7 +213,7 @@  static void update_linkspeed(struct net_device *dev)
  	if (!mii_link_ok(&ether->mii)) {
  		ether->linkflag = 0x0;
  		netif_carrier_off(dev);
-		dev_warn(&pdev->dev, "%s: Link down.\n", dev->name);
+		dev_dbg(&pdev->dev, "%s: Link down.\n", dev->name);
  		return;
  	}