diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-30 01:11:17 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-30 01:11:17 -0700 |
commit | 3c00bd8ff25c0677f7fa50364c7f395caf3c117e (patch) | |
tree | f253b0caaa5ab2880e39eb52adad77ca2f35492f | |
parent | 0be30cc58c335896c7ce4b3b38641b4ac84169a4 (diff) | |
download | riscv-openocd-3c00bd8ff25c0677f7fa50364c7f395caf3c117e.zip riscv-openocd-3c00bd8ff25c0677f7fa50364c7f395caf3c117e.tar.gz riscv-openocd-3c00bd8ff25c0677f7fa50364c7f395caf3c117e.tar.bz2 |
Enable debug during the poll
-rw-r--r-- | src/target/riscv/riscv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index c1b5527..387b852 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1036,7 +1036,9 @@ int riscv_openocd_poll(struct target *target) #ifdef RISCV_DEBUG_POLL LOG_DEBUG(" hart %d halted", halted_hart); #else + debug_level = old_debug_level; LOG_DEBUG("hart %d halted", halted_hart); + debug_level = LOG_LVL_INFO; #endif /* If we're here then at least one hart triggered. That means @@ -1063,7 +1065,9 @@ int riscv_openocd_poll(struct target *target) #ifdef RISCV_DEBUG_POLL LOG_DEBUG(" hart %d halted", halted_hart); #else + debug_level = old_debug_level; LOG_DEBUG("hart %d halted", halted_hart); + debug_level = LOG_LVL_INFO; #endif } |