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:
@@ -967,7 +967,7 @@ int default_interface_jtag_execute_queue(void)
|
||||
struct jtag_command *cmd = jtag_command_queue_get();
|
||||
int result = adapter_driver->jtag_ops->execute_queue(cmd);
|
||||
|
||||
while (debug_level >= LOG_LVL_DEBUG_IO && cmd) {
|
||||
while (LOG_LEVEL_IS(LOG_LVL_DEBUG_IO) && cmd) {
|
||||
switch (cmd->type) {
|
||||
case JTAG_SCAN:
|
||||
LOG_DEBUG_IO("JTAG %s SCAN to %s",
|
||||
|
||||
Reference in New Issue
Block a user