From: openocd-gerrit <ope...@us...> - 2025-03-08 17:52:00
|
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 953ad9e11658534ea4ca682c7f112db3059be1cc (commit) from 7837f508a5cca2c82ec46f076d115853a4eaac38 (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 953ad9e11658534ea4ca682c7f112db3059be1cc Author: Marc Schink <de...@za...> Date: Thu Feb 13 22:37:40 2025 +0000 rtt: Raise error if control block was not found Since RTT is not started if the control block was not found, an error must be raised instead of just informing the user. Change-Id: I2873e72f142ca572da97ee1fe91f6f1301307555 Signed-off-by: Marc Schink <de...@za...> Reviewed-on: https://review.openocd.org/c/openocd/+/8757 Tested-by: jenkins Reviewed-by: Antonio Borneo <bor...@gm...> diff --git a/src/rtt/rtt.c b/src/rtt/rtt.c index 42c3ee3ad..15b9a373a 100644 --- a/src/rtt/rtt.c +++ b/src/rtt/rtt.c @@ -140,8 +140,8 @@ int rtt_start(void) addr); rtt.ctrl.address = addr; } else { - LOG_INFO("rtt: No control block found"); - return ERROR_OK; + LOG_ERROR("rtt: No control block found"); + return ERROR_FAIL; } } ----------------------------------------------------------------------- Summary of changes: src/rtt/rtt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Main OpenOCD repository |