Skip to content
Snippets Groups Projects
Commit 311d8027 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Check argument count in "mii" command.

Problem pointed out by Andrew Dyer, 13 Jun 2005
parent 5078cce8
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4: Changes since U-Boot 1.1.4:
====================================================================== ======================================================================
* Check argument count in "mii" command.
Problem pointed out by Andrew Dyer, 13 Jun 2005
* Cleanup TQM5200 board configurations: * Cleanup TQM5200 board configurations:
- make highboot configurations use environment at high end, too, - make highboot configurations use environment at high end, too,
to avoid flash fragmentation to avoid flash fragmentation
......
...@@ -57,6 +57,11 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) ...@@ -57,6 +57,11 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
int rcode = 0; int rcode = 0;
char *devname; char *devname;
if (argc < 2) {
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
#if defined(CONFIG_8xx) || defined(CONFIG_MCF52x2) #if defined(CONFIG_8xx) || defined(CONFIG_MCF52x2)
mii_init (); mii_init ();
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment