commit | 6e8d58d36691520f8da74cd948661d28d5a5dc66 | [log] [tgz] |
---|---|---|
author | TsiChung Liew <tsicliew@gmail.com> | Tue Jun 30 14:30:19 2009 +0000 |
committer | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | Tue Jul 14 09:46:39 2009 -0500 |
tree | ac1952a9986fb6ad75807b7bf8c339bad21adc10 | |
parent | ee0a8462466dd284968536eb57c6eef4be0d6aad [diff] |
Command for accessing serial flash update Change strtoul number base of argv 3 from 0 to 16 Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 2d463a8..d571f60 100644 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c
@@ -48,7 +48,7 @@ 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; }