[U-Boot] [PATCH] Command for accessing serial flash update

TsiChung Liew tsicliew at gmail.com
Wed Jul 8 09:53:17 CEST 2009


Change strtoul number base of argv 3 from 0 to 16

Signed-off-by: TsiChung Liew <tsicliew at gmail.com>
---
 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



More information about the U-Boot mailing list