]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
target/breakpoints: Use LOG_TARGET_ERROR()
authorMarc Schink <dev@zapb.de>
Tue, 22 Oct 2024 15:31:20 +0000 (17:31 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 23 Nov 2024 13:53:42 +0000 (13:53 +0000)
Use LOG_TARGET_xxx() for the remaining log messages.

Change-Id: I4b86b206d17dead0662388e827204b40a7d29edd
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8579
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/breakpoints.c

index 9378abcb141e435b98e4602d29f776b165888d28..a080416291275b981e54809926f0d545a1698d84 100644 (file)
@@ -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;
                }
@@ -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;