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 <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8757
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Marc Schink 2025-02-13 22:37:40 +00:00 committed by Antonio Borneo
parent 7837f508a5
commit 953ad9e116

View File

@ -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;
}
}