net: stmmac: Log MAC address only once

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>
This commit is contained in:
Hans de Goede 2014-01-26 15:50:44 +01:00 коммит произвёл David S. Miller
Родитель 7509edd6e9
Коммит c88460b778
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);
}
/**