This is an automated email from Gerrit.

"zapb <[email protected]>" just uploaded a new patch set to Gerrit, which you can 
find at https://review.openocd.org/c/openocd/+/9068

-- gerrit

commit 0ff65d0753348ba96a2d9aff07c3685af8967da1
Author: Marc Schink <[email protected]>
Date:   Sat Aug 2 11:29:37 2025 +0200

    adapter/cmsis-dap: Fix 'quirk' command
    
    Display only the quirk state without additional text. This makes
    processing via Tcl easier. Also, do not echo the selected quirk state.
    
    Change-Id: I2e8de2742ffc10c7995a30a2a2d8a383b0cfaa69
    Signed-off-by: Marc Schink <[email protected]>

diff --git a/src/jtag/drivers/cmsis_dap.c b/src/jtag/drivers/cmsis_dap.c
index 2bfcfcc2b0..4eadd7ee4c 100644
--- a/src/jtag/drivers/cmsis_dap.c
+++ b/src/jtag/drivers/cmsis_dap.c
@@ -2238,11 +2238,13 @@ COMMAND_HANDLER(cmsis_dap_handle_quirk_command)
        if (CMD_ARGC > 1)
                return ERROR_COMMAND_SYNTAX_ERROR;
 
-       if (CMD_ARGC == 1)
+       if (CMD_ARGC == 1) {
                COMMAND_PARSE_ENABLE(CMD_ARGV[0], cmsis_dap_handle->quirk_mode);
+               return ERROR_OK;
+       }
+
+       command_print(CMD, "%s", cmsis_dap_handle->quirk_mode ? "enabled" : 
"disabled");
 
-       command_print(CMD, "CMSIS-DAP quirk workarounds %s",
-                                 cmsis_dap_handle->quirk_mode ? "enabled" : 
"disabled");
        return ERROR_OK;
 }
 

-- 

Reply via email to