- Replace 'for(' with 'for ('.
[openocd.git] / src / jtag / interface.c
index 14c626ee9c8bb5e5adb897d760098db6b49b35ba..6a45d5939b73c497d9a6a2b62da27151aa182e89 100644 (file)
@@ -77,7 +77,7 @@ int tap_move_ndx( tap_state_t astate )
 
        int ndx;
 
-       switch( astate )
+       switch ( astate )
        {
        case TAP_RESET:         ndx = 0;                        break;
        case TAP_DRSHIFT:       ndx = 2;                        break;
@@ -209,10 +209,10 @@ bool tap_is_state_stable(tap_state_t astate)
 {
        bool is_stable;
 
-       /*      A switch() is used because it is symbol dependent
+       /*      A switch () is used because it is symbol dependent
                (not value dependent like an array), and can also check bounds.
        */
-       switch( astate )
+       switch ( astate )
        {
        case TAP_RESET:
        case TAP_IDLE:
@@ -331,7 +331,7 @@ const char* tap_state_name(tap_state_t state)
 {
        const char* ret;
 
-       switch( state )
+       switch ( state )
        {
        case TAP_RESET:         ret = "RESET";                  break;
        case TAP_IDLE:          ret = "RUN/IDLE";               break;
@@ -359,9 +359,9 @@ tap_state_t tap_state_by_name(const char *name)
 {
        tap_state_t x;
 
-       for( x = 0 ; x < TAP_NUM_STATES ; x++ ){
+       for ( x = 0 ; x < TAP_NUM_STATES ; x++ ){
                /* be nice to the human */
-               if( 0 == strcasecmp( name, tap_state_name(x) ) ){
+               if ( 0 == strcasecmp( name, tap_state_name(x) ) ){
                        return x;
                }
        }
@@ -372,7 +372,7 @@ tap_state_t tap_state_by_name(const char *name)
 #ifdef _DEBUG_JTAG_IO_
 
 #define JTAG_DEBUG_STATE_APPEND(buf, len, bit) \
-               do { buf[len] = bit ? '1' : '0'; } while(0)
+               do { buf[len] = bit ? '1' : '0'; } while (0)
 #define JTAG_DEBUG_STATE_PRINT(a, b, astr, bstr) \
                DEBUG_JTAG_IO("TAP/SM: %9s -> %5s\tTMS: %s\tTDI: %s", \
                        tap_state_name(a), tap_state_name(b), astr, bstr)
@@ -403,9 +403,9 @@ tap_state_t jtag_debug_state_machine(const void *tms_buf, const void *tdi_buf,
        DEBUG_JTAG_IO("TAP/SM: TMS bits: %u (bytes: %u)", tap_bits, tap_bytes);
 
        tap_out_bits = 0;
-       for(cur_byte = 0; cur_byte < tap_bytes; cur_byte++)
+       for (cur_byte = 0; cur_byte < tap_bytes; cur_byte++)
        {
-               for(cur_bit = 0; cur_bit < 8; cur_bit++)
+               for (cur_bit = 0; cur_bit < 8; cur_bit++)
                {
                        // make sure we do not run off the end of the buffers
                        unsigned tap_bit = cur_byte * 8 + cur_bit;

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)