aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm11.c
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/target/arm11.c
parent9ff16575d2838527afa635058c4cb95d641533ba (diff)
downloadriscv-openocd-1dad2ee602674de1b97548913dba2d53267d35a3.zip
riscv-openocd-1dad2ee602674de1b97548913dba2d53267d35a3.tar.gz
riscv-openocd-1dad2ee602674de1b97548913dba2d53267d35a3.tar.bz2
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/target/arm11.c')
-rw-r--r--src/target/arm11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c
index 8b7b69c..671943f 100644
--- a/src/target/arm11.c
+++ b/src/target/arm11.c
@@ -64,10 +64,10 @@ static int arm11_step(struct target *target, int current,
static int arm11_check_init(struct arm11_common *arm11)
{
CHECK_RETVAL(arm11_read_DSCR(arm11));
- LOG_DEBUG("DSCR %08x", (unsigned) arm11->dscr);
if (!(arm11->dscr & DSCR_HALT_DBG_MODE))
{
+ LOG_DEBUG("DSCR %08x", (unsigned) arm11->dscr);
LOG_DEBUG("Bringing target into debug mode");
arm11->dscr |= DSCR_HALT_DBG_MODE;