Enable debug during the poll

This commit is contained in:
Palmer Dabbelt 2018-05-30 01:11:17 -07:00
parent 0be30cc58c
commit 3c00bd8ff2
1 changed files with 4 additions and 0 deletions

View File

@ -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
}