[PATCH 2/2] netdev/fec.c: fix timeout warning message
Bryan Wu
bryan.wu at canonical.com
Thu Apr 1 10:56:06 UTC 2010
BugLink: http://bugs.launchpad.net/bugs/546649
BugLink: http://bugs.launchpad.net/bugs/457878
We will get lots of timeout error message when transfer large file. It is
not an error, just a warning and it is not an impact to performance.
So set the printk message level as warning not an error.
Signed-off-by: Bryan Wu <bryan.wu at canonical.com>
---
drivers/net/fec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 53240d3..92a67a1 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -644,7 +644,7 @@ static int fec_enet_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
cpu_relax();
if (timeout-- < 0) {
fep->mii_timeout = 1;
- printk(KERN_ERR "FEC: MDIO read timeout\n");
+ printk(KERN_WARNING "FEC: MDIO read timeout\n");
return -ETIMEDOUT;
}
}
@@ -675,7 +675,7 @@ static int fec_enet_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
cpu_relax();
if (timeout-- < 0) {
fep->mii_timeout = 1;
- printk(KERN_ERR "FEC: MDIO write timeout\n");
+ printk(KERN_WARNING "FEC: MDIO write timeout\n");
return -ETIMEDOUT;
}
}
--
1.7.0
More information about the kernel-team
mailing list