From 953ad9e11658534ea4ca682c7f112db3059be1cc Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Thu, 13 Feb 2025 22:37:40 +0000 Subject: [PATCH] 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 Reviewed-on: https://review.openocd.org/c/openocd/+/8757 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/rtt/rtt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }