Skip to contentSkip to conversation

Command for accessing serial flash update

PATCH New TsiChung Liew 1 participant 1 message Jul 8, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Command for accessing serial flash update

Change strtoul number base of argv 3 from 0 to 16

---
 common/cmd_sf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_sf.c +1 -1
index 6a60b16..384e6d3 100644
@@ -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;
 	}
Signature · 1 line
1.5.6.4