Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c88460b7 authored by Hans de Goede's avatar Hans de Goede Committed by David S. Miller
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7509edd6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1524,10 +1524,10 @@ 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_warn("%s: device MAC address %pM\n", priv->dev->name,
		pr_info("%s: device MAC address %pM\n", priv->dev->name,
			priv->dev->dev_addr);
	}
}

/**
 * stmmac_init_dma_engine: DMA init.