summaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
authorEdgar Grimberg <edgar.grimberg@zylin.com>2010-01-25 16:34:27 +0100
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-01-25 12:19:52 -0800
commit1dad2ee602674de1b97548913dba2d53267d35a3 (patch)
tree76993888f0435f62eaedb4cc15454c324ecd6a35 /src/jtag
parent9ff16575d2838527afa635058c4cb95d641533ba (diff)
downloadopenocd+libswd-1dad2ee602674de1b97548913dba2d53267d35a3.tar.gz
openocd+libswd-1dad2ee602674de1b97548913dba2d53267d35a3.tar.bz2
openocd+libswd-1dad2ee602674de1b97548913dba2d53267d35a3.tar.xz
openocd+libswd-1dad2ee602674de1b97548913dba2d53267d35a3.zip
core arm11: Silence logs at level 3 if there is no activity
If the target and openocd are idling, the log should normally be silent at level 3. (Given no verbose logging options.) Signed-off-by: Edgar Grimberg <edgar.grimberg@zylin.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/core.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index e311bfbc..8a580e9e 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -530,10 +530,12 @@ int jtag_add_statemove(tap_state_t goal_state)
{
tap_state_t cur_state = cmd_queue_cur_state;
- LOG_DEBUG("cur_state=%s goal_state=%s",
- tap_state_name(cur_state),
- tap_state_name(goal_state));
-
+ if (goal_state != cur_state)
+ {
+ LOG_DEBUG("cur_state=%s goal_state=%s",
+ tap_state_name(cur_state),
+ tap_state_name(goal_state));
+ }
/* If goal is RESET, be paranoid and force that that transition
* (e.g. five TCK cycles, TMS high). Else trust "cur_state".