Skip to content

Commit

Permalink
target/breakpoints: Use LOG_TARGET_ERROR()
Browse files Browse the repository at this point in the history
Use LOG_TARGET_xxx() for the remaining log messages.

Change-Id: I4b86b206d17dead0662388e827204b40a7d29edd
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8579
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
  • Loading branch information
zapb-0 authored and borneoa committed Nov 23, 2024
1 parent 6973613 commit c837bea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/target/breakpoints.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static int context_breakpoint_add_internal(struct target *target,
* breakpoint" ... check all the parameters before
* succeeding.
*/
LOG_ERROR("Duplicate Breakpoint asid: 0x%08" PRIx32 " (BP %" PRIu32 ")",
LOG_TARGET_ERROR(target, "Duplicate Breakpoint asid: 0x%08" PRIx32 " (BP %" PRIu32 ")",
asid, breakpoint->unique_id);
return ERROR_TARGET_DUPLICATE_BREAKPOINT;
}
Expand Down Expand Up @@ -643,8 +643,7 @@ int watchpoint_remove(struct target *target, target_addr_t address)

int watchpoint_clear_target(struct target *target)
{
LOG_DEBUG("Delete all watchpoints for target: %s",
target_name(target));
LOG_TARGET_DEBUG(target, "Delete all watchpoints");

struct watchpoint *watchpoint = target->watchpoints;
int retval = ERROR_OK;
Expand Down

0 comments on commit c837bea

Please sign in to comment.