fixed warnings + added zy1000 jtag_add_clocks support.
[fw/openocd] / src / jtag / jlink.c
index 6d40b56dbd0d6304c5286a38de9e3629b553a721..04ce65c31f4f60675a428dd37398eb7ef0269503 100644 (file)
@@ -376,7 +376,7 @@ void jlink_path_move(int num_states, enum tap_state *path)
                }
                else
                {
-                       LOG_ERROR("BUG: %s -> %s isn't a valid TAP transition", tap_state_strings[cur_state], tap_state_strings[path[i]]);
+                       LOG_ERROR("BUG: %s -> %s isn't a valid TAP transition", jtag_state_name(cur_state), jtag_state_name(path[i]));
                        exit(-1);
                }
 
@@ -392,7 +392,7 @@ void jlink_runtest(int num_cycles)
 
        enum tap_state saved_end_state = end_state;
 
-       /* only do a state_move when we're not already in RTI */
+       /* only do a state_move when we're not already in IDLE */
        if (cur_state != TAP_IDLE)
        {
                jlink_end_state(TAP_IDLE);