From 55e916050981af472c1749b8cbb0e4940ba26273 Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Sun, 13 Jul 2025 19:56:55 +0000 Subject: [PATCH] flash/nor/stm32h7x: Change 'option_read' output Remove the verbose command output to enable processing with Tcl. Change-Id: Ic552747b78e4c095a267275e0affd3b9643657b4 Signed-off-by: Marc Schink Reviewed-on: https://review.openocd.org/c/openocd/+/9001 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/flash/nor/stm32h7x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/flash/nor/stm32h7x.c b/src/flash/nor/stm32h7x.c index e9096a54e..c91ab5160 100644 --- a/src/flash/nor/stm32h7x.c +++ b/src/flash/nor/stm32h7x.c @@ -1237,10 +1237,9 @@ COMMAND_HANDLER(stm32h7_handle_option_read_command) if (retval != ERROR_OK) return retval; - command_print(CMD, "Option Register: <0x%" PRIx32 "> = 0x%" PRIx32, - stm32h7_get_flash_reg(bank, reg_offset), value); + command_print(CMD, "0x%" PRIx32, value); - return retval; + return ERROR_OK; } COMMAND_HANDLER(stm32h7_handle_option_write_command)