target: fix minor typos and duplicated words
Change-Id: I8deb0017dc66a243e3dd51e285aa086db500decd Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5766 Tested-by: jenkins
This commit is contained in:
@@ -86,7 +86,7 @@ static int jim_arc_read_reg_type_field(Jim_GetOptInfo *goi, const char **field_n
|
||||
int e = JIM_OK;
|
||||
if ((type == CFG_ADD_REG_TYPE_STRUCT && goi->argc < 3) ||
|
||||
(type == CFG_ADD_REG_TYPE_FLAG && goi->argc < 2)) {
|
||||
Jim_SetResultFormatted(goi->interp, "Not enough argmunets after -flag/-bitfield");
|
||||
Jim_SetResultFormatted(goi->interp, "Not enough arguments after -flag/-bitfield");
|
||||
return JIM_ERR;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ static int jim_arc_read_reg_type_field(Jim_GetOptInfo *goi, const char **field_n
|
||||
|
||||
end_pos = start_pos;
|
||||
|
||||
/* Check if any argnuments remain,
|
||||
/* Check if any arguments remain,
|
||||
* set bitfields[cur_field].end if flag is multibit */
|
||||
if (goi->argc > 0)
|
||||
/* Check current argv[0], if it is equal to "-flag",
|
||||
@@ -143,9 +143,9 @@ static int jim_arc_add_reg_type_flags(Jim_Interp *interp, int argc,
|
||||
|
||||
int e = JIM_OK;
|
||||
|
||||
/* Check if the amount of argnuments is not zero */
|
||||
/* Check if the amount of arguments is not zero */
|
||||
if (goi.argc <= 0) {
|
||||
Jim_SetResultFormatted(goi.interp, "The command has no argnuments");
|
||||
Jim_SetResultFormatted(goi.interp, "The command has no arguments");
|
||||
return JIM_ERR;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ static int jim_arc_add_reg_type_flags(Jim_Interp *interp, int argc,
|
||||
unsigned int fields_sz = (goi.argc - 2) / 3;
|
||||
unsigned int cur_field = 0;
|
||||
|
||||
/* Tha maximum amount of bitfilds is 32 */
|
||||
/* The maximum amount of bitfields is 32 */
|
||||
if (fields_sz > 32) {
|
||||
Jim_SetResultFormatted(goi.interp, "The amount of bitfields exceed 32");
|
||||
return JIM_ERR;
|
||||
@@ -509,9 +509,9 @@ static int jim_arc_add_reg_type_struct(Jim_Interp *interp, int argc,
|
||||
|
||||
int e = JIM_OK;
|
||||
|
||||
/* Check if the amount of argnuments is not zero */
|
||||
/* Check if the amount of arguments is not zero */
|
||||
if (goi.argc <= 0) {
|
||||
Jim_SetResultFormatted(goi.interp, "The command has no argnuments");
|
||||
Jim_SetResultFormatted(goi.interp, "The command has no arguments");
|
||||
return JIM_ERR;
|
||||
}
|
||||
|
||||
@@ -520,7 +520,7 @@ static int jim_arc_add_reg_type_struct(Jim_Interp *interp, int argc,
|
||||
unsigned int fields_sz = (goi.argc - 2) / 4;
|
||||
unsigned int cur_field = 0;
|
||||
|
||||
/* Tha maximum amount of bitfilds is 32 */
|
||||
/* The maximum amount of bitfields is 32 */
|
||||
if (fields_sz > 32) {
|
||||
Jim_SetResultFormatted(goi.interp, "The amount of bitfields exceed 32");
|
||||
return JIM_ERR;
|
||||
@@ -672,19 +672,19 @@ static int jim_arc_add_reg(Jim_Interp *interp, int argc, Jim_Obj * const *argv)
|
||||
}
|
||||
|
||||
/* There is no architecture number that we could treat as invalid, so
|
||||
* separate variable requried to ensure that arch num has been set. */
|
||||
* separate variable required to ensure that arch num has been set. */
|
||||
bool arch_num_set = false;
|
||||
const char *type_name = "int"; /* Default type */
|
||||
int type_name_len = strlen(type_name);
|
||||
int e = ERROR_OK;
|
||||
|
||||
/* At least we need to specify 4 parameters: name, number and gdb_feature,
|
||||
* which means there should be 6 arguments. Also there can be additional paramters
|
||||
* which means there should be 6 arguments. Also there can be additional parameters
|
||||
* "-type <type>", "-g" and "-core" or "-bcr" which makes maximum 10 parameters. */
|
||||
if (goi.argc < 6 || goi.argc > 10) {
|
||||
free_reg_desc(reg);
|
||||
Jim_SetResultFormatted(goi.interp,
|
||||
"Should be at least 6 argnuments and not greater than 10: "
|
||||
"Should be at least 6 arguments and not greater than 10: "
|
||||
" -name <name> -num <num> -feature <gdb_feature> "
|
||||
" [-type <type_name>] [-core|-bcr] [-g].");
|
||||
return JIM_ERR;
|
||||
@@ -1035,7 +1035,7 @@ static const struct command_registration arc_core_command_handlers[] = {
|
||||
.usage = "arc add-reg -name <string> -num <int> -feature <string> [-gdbnum <int>] "
|
||||
"[-core|-bcr] [-type <type_name>] [-g]",
|
||||
.help = "Add new register. Name, architectural number and feature name "
|
||||
"are requried options. GDB regnum will default to previous register "
|
||||
"are required options. GDB regnum will default to previous register "
|
||||
"(gdbnum + 1) and shouldn't be specified in most cases. Type "
|
||||
"defaults to default GDB 'int'.",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user