From: openocd-gerrit <ope...@us...> - 2024-11-23 13:54:33
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 76e228f733af8f685cfd96a25c92f17256562d1c (commit) from c837beaf5d70685a4c3236b1680897985adafe5f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 76e228f733af8f685cfd96a25c92f17256562d1c Author: Marc Schink <de...@za...> Date: Tue Oct 22 18:22:36 2024 +0200 target/cortex_m: Use LOG_TARGET_xxx() Use LOG_TARGET_xxx() for the remaining log messages. Change-Id: If52e3935b57e4c39212ce6b5111ff65159de1373 Signed-off-by: Marc Schink <de...@za...> Reviewed-on: https://review.openocd.org/c/openocd/+/8580 Tested-by: jenkins Reviewed-by: Antonio Borneo <bor...@gm...> diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index e78d2e29b..fa95fcbc7 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -1469,7 +1469,7 @@ static int cortex_m_resume(struct target *target, int current, if (target->smp && !debug_execution) { retval = cortex_m_restore_smp(target, !!handle_breakpoints); if (retval != ERROR_OK) - LOG_WARNING("resume of a SMP target failed, trying to resume current one"); + LOG_TARGET_WARNING(target, "resume of a SMP target failed, trying to resume current one"); } cortex_m_restart_one(target, !!debug_execution); @@ -2553,7 +2553,7 @@ static bool cortex_m_has_tz(struct target *target) int retval = target_read_u32(target, DAUTHSTATUS, &dauthstatus); if (retval != ERROR_OK) { - LOG_WARNING("Error reading DAUTHSTATUS register"); + LOG_TARGET_WARNING(target, "Error reading DAUTHSTATUS register"); return false; } return (dauthstatus & DAUTHSTATUS_SID_MASK) != 0; @@ -2602,7 +2602,7 @@ int cortex_m_examine(struct target *target) } else { armv7m->debug_ap = dap_get_ap(swjdp, cortex_m->apsel); if (!armv7m->debug_ap) { - LOG_ERROR("Cannot get AP"); + LOG_TARGET_ERROR(target, "Cannot get AP"); return ERROR_FAIL; } } @@ -2659,9 +2659,9 @@ int cortex_m_examine(struct target *target) LOG_TARGET_WARNING(target, "Erratum 3092511: Cortex-M7 can halt in an incorrect address when breakpoint and exception occurs simultaneously"); cortex_m->incorrect_halt_erratum = true; if (armv7m->is_hla_target) - LOG_WARNING("No erratum 3092511 workaround on hla adapter"); + LOG_TARGET_WARNING(target, "No erratum 3092511 workaround on hla adapter"); else - LOG_INFO("The erratum 3092511 workaround will resume after an incorrect halt"); + LOG_TARGET_INFO(target, "The erratum 3092511 workaround will resume after an incorrect halt"); } LOG_TARGET_DEBUG(target, "cpuid: 0x%8.8" PRIx32 "", cpuid); ----------------------------------------------------------------------- Summary of changes: src/target/cortex_m.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) hooks/post-receive -- Main OpenOCD repository |