use COMMAND_HANDLER macro to define all commands
[fw/openocd] / src / target / target_request.c
index 5bfd57a429d0d41a75d6dbc7ddb82cfdb90ae438..4bfda5bf700e4219116c7905b1d0f1cc719276e8 100644 (file)
@@ -257,7 +257,7 @@ int delete_debug_msg_receiver(struct command_context_s *cmd_ctx, target_t *targe
        return ERROR_OK;
 }
 
-static int handle_target_request_debugmsgs_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
+COMMAND_HANDLER(handle_target_request_debugmsgs_command)
 {
        target_t *target = get_current_target(cmd_ctx);