X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Ftcl.c;h=d09e78123b3318dd7e1989dd81e67585a64684b6;hp=13a4da65c472faae64a87bff19b0d53d700e64b5;hb=95d2a2372421aeddae01f1af51279ab7989e46b5;hpb=e43979e7020ea9d05a3c0a2af444f292eacb6c53 diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index 13a4da65c4..d09e78123b 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -367,14 +367,14 @@ static int jim_newtap_cmd( Jim_GetOptInfo *goi ) /* clear them as we find them */ reqbits = (NTREQ_IRLEN | NTREQ_IRCAPTURE | NTREQ_IRMASK); - while( goi->argc ){ + while ( goi->argc ){ e = Jim_GetOpt_Nvp( goi, opts, &n ); if ( e != JIM_OK ){ Jim_GetOpt_NvpUnknown( goi, opts, 0 ); return e; } LOG_DEBUG("Processing option: %s", n->name ); - switch( n->value ){ + switch ( n->value ){ case NTAP_OPT_ENABLED: pTap->disabled_after_reset = false; break; @@ -414,7 +414,7 @@ static int jim_newtap_cmd( Jim_GetOptInfo *goi ) Jim_SetResult_sprintf( goi->interp, "option: %s bad parameter", n->name ); return e; } - switch(n->value){ + switch (n->value){ case NTAP_OPT_IRLEN: if (w > (jim_wide) (8 * sizeof(pTap->ir_capture_value))) LOG_WARNING("huge IR length %d", (int) w); @@ -440,8 +440,8 @@ static int jim_newtap_cmd( Jim_GetOptInfo *goi ) reqbits &= (~(NTREQ_IRCAPTURE)); break; } - } /* switch(n->value) */ - } /* while( goi->argc ) */ + } /* switch (n->value) */ + } /* while ( goi->argc ) */ /* default is enabled-after-reset */ pTap->enabled = !pTap->disabled_after_reset; @@ -540,7 +540,7 @@ static int jim_jtag_command( Jim_Interp *interp, int argc, Jim_Obj *const *argv return e; } Jim_SetEmptyResult( goi.interp ); - switch( n->value ){ + switch ( n->value ){ case JTAG_CMD_INTERFACE: /* return the name of the interface */ /* TCL code might need to know the exact type... */ @@ -861,7 +861,7 @@ static int handle_scan_chain_command(struct command_context_s *cmd_ctx, char *cm command_print(cmd_ctx, " TapName | Enabled | IdCode Expected IrLen IrCap IrMask Instr "); command_print(cmd_ctx, "---|--------------------|---------|------------|------------|------|------|------|---------"); - while( tap ){ + while ( tap ){ uint32_t expected, expected_mask, cur_instr, ii; expected = buf_get_u32(tap->expected, 0, tap->ir_length); expected_mask = buf_get_u32(tap->expected_mask, 0, tap->ir_length); @@ -1181,7 +1181,7 @@ static int handle_irscan_command(struct command_context_s *cmd_ctx, char *cmd, c const char *cpA; const char *cpS; cpA = args[ argc-1 ]; - for( endstate = 0 ; endstate < TAP_NUM_STATES ; endstate++ ){ + for ( endstate = 0 ; endstate < TAP_NUM_STATES ; endstate++ ){ cpS = tap_state_name( endstate ); if ( 0 == strcmp( cpA, cpS ) ){ break;