From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tabi Timur-B04825 Date: Thu, 11 Aug 2011 14:55:45 +0000 Subject: [U-Boot] [u-boot-release] [Patch v3] powerpc/eeprom: cleanup mac command In-Reply-To: <1313074116-8733-1-git-send-email-yorksun@freescale.com> References: <1313074116-8733-1-git-send-email-yorksun@freescale.com> Message-ID: <4E43ED71.4020304@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.