Skip to content

Commit

Permalink
net: eth-uclass: Improve error message when MAC is not found
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Fabio Estevam authored and trini committed Nov 5, 2023
1 parent 9e4cabc commit 7907cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/eth-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7907cf8

Please sign in to comment.