riscv: fix remove_trigger return code for unavailable hw bp slot

This commit is contained in:
Erhan Kurubas 2022-02-09 21:36:58 +01:00
parent f6ffede8b6
commit 9fe791ba4a
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ static int remove_trigger(struct target *target, struct trigger *trigger)
if (i >= r->trigger_count) { if (i >= r->trigger_count) {
LOG_ERROR("Couldn't find the hardware resources used by hardware " LOG_ERROR("Couldn't find the hardware resources used by hardware "
"trigger."); "trigger.");
return ERROR_FAIL; return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
} }
LOG_DEBUG("[%d] Stop using resource %d for bp %d", target->coreid, i, LOG_DEBUG("[%d] Stop using resource %d for bp %d", target->coreid, i,
trigger->unique_id); trigger->unique_id);