[U-Boot] [u-boot-release] [Patch v3] powerpc/eeprom: cleanup mac command

Tabi Timur-B04825 B04825 at freescale.com
Thu Aug 11 16:55:45 CEST 2011


York Sun wrote:
> -		e.mac_count = simple_strtoul(argv[2], NULL, 16);
> +		e.mac_count = simple_strtoul(argv[2], NULL, 10);

You forgot the MAC address index.  There's another use of strtoul in the 
code that needs to be fixed.

Also, if you use "0" instead of "10", then it should be able to handle 
hex as well, just in case someone wants to use it.


More information about the U-Boot mailing list