From: Fabio Estevam Date: Fri, 20 Oct 2023 12:41:51 +0000 (-0300) Subject: net: eth-uclass: Improve error message when MAC is not found X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=7907cf80049df56d7a8f66c91626154986fa59e2;p=u-boot.git net: eth-uclass: Improve error message when MAC is not found While bringinp up a new board without the MAC fuses programmed, the following error message was observed: Error: ethernet@30bf0000 address not set. Improve the error message to make it clearer the reason of the failure. Signed-off-by: Fabio Estevam --- diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 565db15b5a..3d0ec91dfa 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -598,7 +598,7 @@ static int eth_post_probe(struct udevice *dev) eth_env_set_enetaddr_by_index("eth", dev_seq(dev), pdata->enetaddr); #else - printf("\nError: %s address not set.\n", + printf("\nError: %s No valid MAC address found.\n", dev->name); return -EINVAL; #endif