net: stmmac: Log MAC address only once
authorHans de Goede <hdegoede@redhat.com>
Sun, 26 Jan 2014 14:50:44 +0000 (15:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2014 06:40:44 +0000 (22:40 -0800)
Logging the MAC address on every if-up, is not really useful, and annoying when
there is no cable inserted and NetworkManager tries the ifup every 50 seconds.

Also change the log level from warning to info, as that is what it is.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index a395bb24cdf2c4b2ba5cd255ed8354dbe44552c0..a2e7d2c96e3678c309377d3e4dbb416feb5fbc38 100644 (file)
@@ -1524,9 +1524,9 @@ static void stmmac_check_ether_addr(struct stmmac_priv *priv)
                                             priv->dev->dev_addr, 0);
                if (!is_valid_ether_addr(priv->dev->dev_addr))
                        eth_hw_addr_random(priv->dev);
+               pr_info("%s: device MAC address %pM\n", priv->dev->name,
+                       priv->dev->dev_addr);
        }
-       pr_warn("%s: device MAC address %pM\n", priv->dev->name,
-               priv->dev->dev_addr);
 }
 
 /**