Cadence virtual debug interface (vdebug) integration
[fw/openocd] / src / hello.c
index 25938bcf88d75e5a45c2f07e5237a32823519e78..9d078c0e776cbc2f455a5b4662edefcbdb223560 100644 (file)
@@ -88,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;
 }
 
@@ -105,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
 };