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 <festevam@denx.de>
This commit is contained in:
Fabio Estevam 2023-10-20 09:41:51 -03:00 committed by Tom Rini
parent 9e4cabcf43
commit 7907cf8004
1 changed files with 1 additions and 1 deletions

View File

@ -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