From: TsiChung Liew Date: Wed, 8 Jul 2009 07:53:17 +0000 Subject: [U-Boot] [PATCH] Command for accessing serial flash update Message-ID: <1247039597-25085-1-git-send-email-tsicliew@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Change strtoul number base of argv 3 from 0 to 16 Signed-off-by: TsiChung Liew --- common/cmd_sf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 6a60b16..384e6d3 100644 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c @@ -48,7 +48,7 @@ static int do_spi_flash_probe(int argc, char *argv[]) goto usage; } if (argc >= 4) { - mode = simple_strtoul(argv[3], &endp, 0); + mode = simple_strtoul(argv[3], &endp, 16); if (*argv[3] == 0 || *endp != 0) goto usage; } -- 1.5.6.4