X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fhello.c;h=9d078c0e776cbc2f455a5b4662edefcbdb223560;hb=b61eae1962f008627f4593cfda9b3431e4c3c016;hp=f103ed23c5224d4ce279783fa0cf34f0aeaba9af;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=fw%2Fopenocd diff --git a/src/hello.c b/src/hello.c index f103ed23c..9d078c0e7 100644 --- a/src/hello.c +++ b/src/hello.c @@ -12,9 +12,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -90,8 +88,8 @@ COMMAND_HANDLER(handle_hello_command) { 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; } @@ -107,8 +105,8 @@ const struct command_registration hello_command_handlers[] = { .name = "foo", .mode = COMMAND_ANY, .help = "example command handler skeleton", - .chain = foo_command_handlers, + .usage = "", }, COMMAND_REGISTRATION_DONE };