summaryrefslogtreecommitdiff
path: root/src/jtag/tcl.c
diff options
context:
space:
mode:
authordbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-20 07:55:11 +0000
committerdbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-20 07:55:11 +0000
commit0c4b119d3f8c218f4da0336fb9c25f856f52853e (patch)
tree9d8152195f5af45ac388c01c00730394469beb44 /src/jtag/tcl.c
parent75581ffea63690c80f4914b2b4e30372b6a5c580 (diff)
downloadopenocd+libswd-0c4b119d3f8c218f4da0336fb9c25f856f52853e.tar.gz
openocd+libswd-0c4b119d3f8c218f4da0336fb9c25f856f52853e.tar.bz2
openocd+libswd-0c4b119d3f8c218f4da0336fb9c25f856f52853e.tar.xz
openocd+libswd-0c4b119d3f8c218f4da0336fb9c25f856f52853e.zip
Debug message updates:
- Shrink messaging during resets, primarily by getting rid of "nothing happened" noise that hides *useful* information. - Improve: the "no IDCODE" message by identifying which tap only supports BYPASS; and the TAP event strings. Related minor code updates: - Remove two needless tests when examining the chain: we know we have a TAP, and that all TAPs have names. - Clean up two loops, turning "while"s into "for"s which better show what's actually being done. git-svn-id: svn://svn.berlios.de/openocd/trunk@2736 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/tcl.c')
-rw-r--r--src/jtag/tcl.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index 04fca227..0368c4f8 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -358,14 +358,9 @@ static int jim_newtap_cmd(Jim_GetOptInfo *goi)
static void jtag_tap_handle_event(jtag_tap_t *tap, enum jtag_event e)
{
jtag_tap_event_action_t * jteap;
- int done;
- jteap = tap->event_action;
-
- done = 0;
- while (jteap) {
+ for (jteap = tap->event_action; jteap != NULL; jteap = jteap->next) {
if (jteap->event == e) {
- done = 1;
LOG_DEBUG("JTAG tap: %s event: %d (%s) action: %s\n",
tap->dotted_name,
e,
@@ -386,14 +381,6 @@ static void jtag_tap_handle_event(jtag_tap_t *tap, enum jtag_event e)
break;
}
}
-
- jteap = jteap->next;
- }
-
- if (!done) {
- LOG_DEBUG("event %d %s - no action",
- e,
- Jim_Nvp_value2name_simple(nvp_jtag_tap_event, e)->name);
}
}