summaryrefslogtreecommitdiffstats
path: root/common/cmd_sf.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_sf.c')
-rw-r--r--common/cmd_sf.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud