int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-int build_unique_lenghts(command_context_t *context, command_t *commands)
+int build_unique_lengths(command_context_t *context, command_t *commands)
{
command_t *c, *p;
/* if the current command has children, build the unique lengths for them */
if (c->children)
- build_unique_lenghts(context, c->children);
+ build_unique_lengths(context, c->children);
}
return ERROR_OK;
}
/* update unique lengths */
- build_unique_lenghts(context, (parent) ? parent : context->commands);
+ build_unique_lengths(context, (parent) ? parent : context->commands);
return c;
}
return EXIT_FAILURE;
DEBUG("log init complete");
- INFO("Open On-Chip Debugger (Revision 63)");
+ INFO("Open On-Chip Debugger (Revision 65)");
cfg_cmd_ctx = copy_command_context(cmd_ctx);
cfg_cmd_ctx->mode = COMMAND_CONFIG;
buffer[511] = 0;
command_print(cmd_ctx, "%s", buffer);
telnet_prompt(connection);
- t_con->surpress_prompt = 1;
+ t_con->suppress_prompt = 1;
break;
case TARGET_EVENT_RESUMED:
command_print(cmd_ctx, "Target %i resumed", get_num_by_target(target));
telnet_prompt(connection);
- t_con->surpress_prompt = 1;
+ t_con->suppress_prompt = 1;
break;
default:
break;
telnet_connection->line_cursor = 0;
telnet_connection->option_size = 0;
telnet_connection->prompt = strdup("> ");
- telnet_connection->surpress_prompt = 0;
+ telnet_connection->suppress_prompt = 0;
telnet_connection->state = TELNET_STATE_DATA;
/* output goes through telnet connection */
/* we're running a command, so we need a prompt
* if the output handler is called, this gets set again */
- t_con->surpress_prompt = 0;
+ t_con->suppress_prompt = 0;
if ((retval = command_run_line(command_context, t_con->line)) != ERROR_OK)
{
if (retval == ERROR_COMMAND_CLOSE_CONNECTION)
if (t_con->next_history > TELNET_LINE_HISTORY_SIZE - 1)
t_con->next_history = 0;
- if (!t_con->surpress_prompt)
+ if (!t_con->suppress_prompt)
{
telnet_prompt(connection);
}
else
{
- t_con->surpress_prompt = 0;
+ t_con->suppress_prompt = 0;
}
t_con->line_size = 0;