projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b49739
)
Improve orion_nand.c command argument parsing.
author
Zachary T Welch
<zw@superlucidity.net>
Fri, 23 Oct 2009 05:33:12 +0000
(22:33 -0700)
committer
Zachary T Welch
<zw@superlucidity.net>
Fri, 6 Nov 2009 02:19:18 +0000
(18:19 -0800)
src/flash/orion_nand.c
patch
|
blob
|
history
diff --git
a/src/flash/orion_nand.c
b/src/flash/orion_nand.c
index 94df17ba7210dc8ead1d84a9e9dc6e0621d21204..6e88f82a4d3c2a0c42e897e1155e95f331f8c801 100644
(file)
--- a/
src/flash/orion_nand.c
+++ b/
src/flash/orion_nand.c
@@
-152,7
+152,7
@@
int orion_nand_device_command(struct command_context_s *cmd_ctx, char *cmd,
return ERROR_NAND_DEVICE_INVALID;
}
-
base = strtoul(args[2], NULL, 0
);
+
COMMAND_PARSE_NUMBER(u32, args[2], base
);
cle = 0;
ale = 1;