This is an automated email from Gerrit.

Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/658

-- gerrit

commit bd0efaabaffbb060e28cf732fb450b78989c890b
Author: Spencer Oliver <[email protected]>
Date:   Tue May 22 17:00:55 2012 +0100

    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 <[email protected]>

diff --git a/src/jtag/core.c b/src/jtag/core.c
index 99a9eb7..63f319a 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)

-- 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to