forked from auracaster/openocd
openocd: don't test 'debug_level' directly
Use the macro 'LOG_LEVEL_IS()' to test 'debug_level'. While there, use the macro 'LOG_LVL_*' in place of the numeric value. Skip all riscv code, as it is going to be updated soon from the external fork. Change-Id: Icad7e879e040d3b9cf1cc004c433f28725017493 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9070 Tested-by: jenkins
This commit is contained in:
@@ -637,7 +637,7 @@ int arm7_9_execute_sys_speed(struct target *target)
|
||||
if ((buf_get_u32(dbg_stat->value, EICE_DBG_STATUS_DBGACK, 1))
|
||||
&& (buf_get_u32(dbg_stat->value, EICE_DBG_STATUS_SYSCOMP, 1)))
|
||||
break;
|
||||
if (debug_level >= 3)
|
||||
if (LOG_LEVEL_IS(LOG_LVL_DEBUG))
|
||||
alive_sleep(100);
|
||||
else
|
||||
keep_alive();
|
||||
@@ -1088,7 +1088,7 @@ int arm7_9_soft_reset_halt(struct target *target)
|
||||
retval = jtag_execute_queue();
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
if (debug_level >= 3)
|
||||
if (LOG_LEVEL_IS(LOG_LVL_DEBUG))
|
||||
alive_sleep(100);
|
||||
else
|
||||
keep_alive();
|
||||
|
||||
Reference in New Issue
Block a user