From: York Sun Date: Thu, 11 Aug 2011 10:03:22 -0500 Subject: [U-Boot] [u-boot-release] [Patch v3] powerpc/eeprom: cleanup mac command In-Reply-To: <4E43ED71.4020304@freescale.com> References: <1313074116-8733-1-git-send-email-yorksun@freescale.com> <4E43ED71.4020304@freescale.com> Message-ID: <1313075002.5224.15.camel@oslab-l1> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2011-08-11 at 09:55 -0500, Tabi Timur-B04825 wrote: > 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. I didn't forget the index. It is base 10 already. > > 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. That's not a bad idea. I will change to "0" but leave the mac address as hex. York