summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-10-08 23:51:50 -0700
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-10-08 23:51:50 -0700
commit5b352c9e79b5174b95adc52db7a65ef67b7da2c3 (patch)
tree4a0df31e5cd1ab30a8e2f9878139d91596a6d034 /src
parent7b650a6abefbede7beffff32ef38518b026ea060 (diff)
downloadopenocd_libswd-5b352c9e79b5174b95adc52db7a65ef67b7da2c3.tar.gz
openocd_libswd-5b352c9e79b5174b95adc52db7a65ef67b7da2c3.tar.bz2
openocd_libswd-5b352c9e79b5174b95adc52db7a65ef67b7da2c3.tar.xz
openocd_libswd-5b352c9e79b5174b95adc52db7a65ef67b7da2c3.zip
minor JTAG init messaging tweaks
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/jtag/core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index bdfd6e5b..1c9d13c9 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -973,8 +973,9 @@ static bool jtag_examine_chain_end(uint8_t *idcodes, unsigned count, unsigned ma
for (; count < max - 31; count += 32)
{
uint32_t idcode = buf_get_u32(idcodes, count, 32);
- // do not trigger the warning if the data looks good
- if (!triggered && jtag_idcode_is_final(idcode))
+
+ /* do not trigger the warning if the data looks good */
+ if (jtag_idcode_is_final(idcode))
continue;
LOG_WARNING("Unexpected idcode after end of chain: %d 0x%08x",
count, (unsigned int)idcode);
@@ -1027,6 +1028,7 @@ static int jtag_examine_chain(void)
/* DR scan to collect BYPASS or IDCODE register contents.
* Then make sure the scan data has both ones and zeroes.
*/
+ LOG_DEBUG("DR scan interrogation for IDCODE/BYPASS");
retval = jtag_examine_chain_execute(idcode_buffer, JTAG_MAX_CHAIN_SIZE);
if (retval != ERROR_OK)
return retval;