From 6e8d58d36691520f8da74cd948661d28d5a5dc66 Mon Sep 17 00:00:00 2001 From: TsiChung Liew Date: Tue, 30 Jun 2009 14:30:19 +0000 Subject: [PATCH] Command for accessing serial flash update Change strtoul number base of argv 3 from 0 to 16 Signed-off-by: TsiChung Liew --- common/cmd_sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 2d463a8c97..d571f60c04 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; } -- 2.30.2