diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 09c1939fe..5a6fc0024 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -927,7 +927,7 @@ static int remove_trigger(struct target *target, struct trigger *trigger) if (i >= r->trigger_count) { LOG_ERROR("Couldn't find the hardware resources used by hardware " "trigger."); - return ERROR_FAIL; + return ERROR_TARGET_RESOURCE_NOT_AVAILABLE; } LOG_DEBUG("[%d] Stop using resource %d for bp %d", target->coreid, i, trigger->unique_id);