projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a3646
)
Improve debug_level command argument parsing.
author
Zachary T Welch
<zw@superlucidity.net>
Fri, 23 Oct 2009 05:34:19 +0000
(22:34 -0700)
committer
Zachary T Welch
<zw@superlucidity.net>
Fri, 6 Nov 2009 02:03:18 +0000
(18:03 -0800)
src/helper/log.c
patch
|
blob
|
history
diff --git
a/src/helper/log.c
b/src/helper/log.c
index f68c9a3ee4bc7ab925641f4cc882e27d27fea031..a8b519af837012e463c7224cdb265abf1bb56ef5 100644
(file)
--- a/
src/helper/log.c
+++ b/
src/helper/log.c
@@
-279,9
+279,7
@@
int handle_debug_level_command(struct command_context_s *cmd_ctx, char *cmd, cha
if (argc == 1)
{
unsigned new_level;
- int retval = parse_uint(args[0], &new_level);
- if (ERROR_OK != retval)
- return retval;
+ COMMAND_PARSE_NUMBER(uint, args[0], new_level);
debug_level = MIN(new_level, LOG_LVL_DEBUG);
}
else if (argc > 1)