]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Command for accessing serial flash update
authorTsiChung Liew <tsicliew@gmail.com>
Tue, 30 Jun 2009 14:30:19 +0000 (14:30 +0000)
committerTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Tue, 14 Jul 2009 14:46:39 +0000 (09:46 -0500)
Change strtoul number base of argv 3 from 0 to 16

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
common/cmd_sf.c

index 2d463a8c978d628914821313818d3a3816f94144..d571f60c04874bdfea4589d99a9bd1410d3f1b89 100644 (file)
@@ -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;
        }