From: Ondrej Zary Date: Tue, 28 Sep 2010 08:18:55 +0000 (+0000) Subject: de2104x: disable media debug messages by default X-Git-Tag: v2.6.37-rc1~147^2~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=862ea4f263c68680558382c1475ad3032c7fd7d4;p=platform%2Fkernel%2Flinux-3.10.git de2104x: disable media debug messages by default Print media debug messages only when HW debug is enabled. Signed-off-by: Ondrej Zary Acked-by: Jeff Garzik Signed-off-by: David S. Miller --- diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index 9124c5c..8054009 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c @@ -948,8 +948,9 @@ static void de_set_media (struct de_private *de) else macmode &= ~FullDuplex; - if (netif_msg_link(de)) { + if (netif_msg_link(de)) dev_info(&de->dev->dev, "set link %s\n", media_name[media]); + if (netif_msg_hw(de)) { dev_info(&de->dev->dev, "mode 0x%x, sia 0x%x,0x%x,0x%x,0x%x\n", dr32(MacMode), dr32(SIAStatus), dr32(CSR13), dr32(CSR14), dr32(CSR15));