de2104x: disable media debug messages by default
authorOndrej Zary <linux@rainbow-software.org>
Tue, 28 Sep 2010 08:18:55 +0000 (08:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Sep 2010 02:45:38 +0000 (19:45 -0700)
Print media debug messages only when HW debug is enabled.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tulip/de2104x.c

index 9124c5c638d8a91badceece5c02e6b7c718f6e82..8054009c4b22445230019a0a78df8a62fb9ac50d 100644 (file)
@@ -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));