diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-05-22 17:00:55 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-05-25 12:08:42 +0000 |
commit | 3d2dd4a3a31d730de244d2f35f351e826ced55b1 (patch) | |
tree | a8ea7c39e590385372a3151bac856933022845c8 | |
parent | 423bfc49f9ba6d9dcb6f25a58ac13957c970ad50 (diff) |
jtag: fix incorrect LOG_DEBUG abs_chain_position
Call jtag_tap_add before LOG_DEBUG otherwise abs_chain_position does
not get correctly set.
Change-Id: I47bd00cc83259c8bfd5551e08c3bb2ebeb5993f5
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/658
Tested-by: jenkins
Reviewed-by: Bill Traynor <wmat@alphatroop.com>
-rw-r--r-- | src/jtag/core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c index 99a9eb75..63f319a3 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -1314,13 +1314,13 @@ void jtag_tap_init(struct jtag_tap *tap) /* register the reset callback for the TAP */ jtag_register_event_callback(&jtag_reset_callback, tap); + jtag_tap_add(tap); LOG_DEBUG("Created Tap: %s @ abs position %d, " - "irlen %d, capture: 0x%x mask: 0x%x", tap->dotted_name, - tap->abs_chain_position, tap->ir_length, - (unsigned) tap->ir_capture_value, - (unsigned) tap->ir_capture_mask); - jtag_tap_add(tap); + "irlen %d, capture: 0x%x mask: 0x%x", tap->dotted_name, + tap->abs_chain_position, tap->ir_length, + (unsigned) tap->ir_capture_value, + (unsigned) tap->ir_capture_mask); } void jtag_tap_free(struct jtag_tap *tap) |