From: Trent Piepho Date: Thu, 6 Jun 2019 16:19:44 +0000 Subject: [U-Boot] [PATCH] net: eth-uclass: No warning for using ROM MAC Message-ID: <20190606161930.707-1-tpiepho@impinj.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Using a ROM burned in MAC address is the normal way devices that have this ability will store their MAC. It's normal operation and a warning message isn't appropriate. Make it a debug message, as it is in non-DM_ETH code paths that do this. Signed-off-by: Trent Piepho --- net/eth-uclass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 031d558625..dae4987355 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -533,8 +533,7 @@ static int eth_post_probe(struct udevice *dev) memcpy(pdata->enetaddr, env_enetaddr, ARP_HLEN); } else if (is_valid_ethaddr(pdata->enetaddr)) { eth_env_set_enetaddr_by_index("eth", dev->seq, pdata->enetaddr); - printf("\nWarning: %s using MAC address from ROM\n", - dev->name); + debug("%s using MAC address from ROM\n", dev->name); } else if (is_zero_ethaddr(pdata->enetaddr) || !is_valid_ethaddr(pdata->enetaddr)) { #ifdef CONFIG_NET_RANDOM_ETHADDR -- 2.14.5