projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm_adi_v5: simplify handling of AP type
[fw/openocd]
/
src
/
hello.c
diff --git
a/src/hello.c
b/src/hello.c
index 25938bcf88d75e5a45c2f07e5237a32823519e78..9d078c0e776cbc2f455a5b4662edefcbdb223560 100644
(file)
--- a/
src/hello.c
+++ b/
src/hello.c
@@
-88,8
+88,8
@@
COMMAND_HANDLER(handle_hello_command)
{
const char *sep, *name;
int retval = CALL_COMMAND_HANDLER(handle_hello_args, &sep, &name);
{
const char *sep, *name;
int retval = CALL_COMMAND_HANDLER(handle_hello_args, &sep, &name);
- if (
ERROR_OK == retval
)
- command_print(CMD
_CTX
, "Greetings%s%s!", sep, name);
+ if (
retval == ERROR_OK
)
+ command_print(CMD, "Greetings%s%s!", sep, name);
return retval;
}
return retval;
}
@@
-105,8
+105,8
@@
const struct command_registration hello_command_handlers[] = {
.name = "foo",
.mode = COMMAND_ANY,
.help = "example command handler skeleton",
.name = "foo",
.mode = COMMAND_ANY,
.help = "example command handler skeleton",
-
.chain = foo_command_handlers,
.chain = foo_command_handlers,
+ .usage = "",
},
COMMAND_REGISTRATION_DONE
};
},
COMMAND_REGISTRATION_DONE
};