mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
net: warn about spaces in device names
Some commands operate on eth device names (like 'mii'), but those cannot be passed on the command line as one argument. So detect devices like these and warn about them so someone will fix it. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
f9abdfe0f2
commit
1384f3bb8a
1 changed files with 3 additions and 0 deletions
|
@ -234,6 +234,9 @@ int eth_initialize(bd_t *bis)
|
|||
puts (" [PRIME]");
|
||||
}
|
||||
|
||||
if (strchr(dev->name, ' '))
|
||||
puts("\nWarning: eth device name has a space!\n");
|
||||
|
||||
eth_getenv_enetaddr_by_index(eth_number, env_enetaddr);
|
||||
|
||||
if (memcmp(env_enetaddr, "\0\0\0\0\0\0", 6)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue