diff options
author | Fabio Estevam <festevam@denx.de> | 2023-10-20 09:41:51 -0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-05 13:28:41 -0500 |
commit | 09feac1b17a32c0bf3564fb9dcc853f313320d87 (patch) | |
tree | 14640927934f2a1d9bd5a567ed1670a7d89cda1b | |
parent | c0138de8ffd8ad89b736bad35b96b7a185db2dad (diff) | |
download | u-boot-09feac1b17a32c0bf3564fb9dcc853f313320d87.zip u-boot-09feac1b17a32c0bf3564fb9dcc853f313320d87.tar.gz u-boot-09feac1b17a32c0bf3564fb9dcc853f313320d87.tar.bz2 |
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>
-rw-r--r-- | net/eth-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 565db15..3d0ec91 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 |