diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c index 801bcba7d..2bef2228e 100644 --- a/src/target/riscv/riscv-011.c +++ b/src/target/riscv/riscv-011.c @@ -1931,11 +1931,6 @@ static int poll_target(struct target *target, bool announce) { jtag_add_ir_scan(target->tap, &select_dbus, TAP_IDLE); - /* Inhibit debug logging during poll(), which isn't usually interesting and - * just fills up the screen/logs with clutter. */ - int old_debug_level = debug_level; - if (LOG_LEVEL_IS(LOG_LVL_DEBUG)) - debug_level = LOG_LVL_INFO; bits_t bits = { .haltnot = 0, .interrupt = 0 @@ -1943,8 +1938,6 @@ static int poll_target(struct target *target, bool announce) if (read_bits(target, &bits) != ERROR_OK) return ERROR_FAIL; - debug_level = old_debug_level; - if (bits.haltnot && bits.interrupt) { target->state = TARGET_DEBUG_RUNNING; LOG_DEBUG("debug running");