]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
target: cget command fix for result output
authorDaniel Goehring <dgoehrin@os.amperecomputing.com>
Thu, 1 May 2025 02:38:15 +0000 (22:38 -0400)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 9 May 2025 12:10:49 +0000 (12:10 +0000)
commitd6c54b94941294628c5ebff5f9c776c4a7b2aebb
tree1152cfa56c26bbcc3d9312100725478ec35a41b7
parent618e447278097e41daecf76f6a1e2005f9fc9450
target: cget command fix for result output

Function target_configure() when processing a "cget" command needs
to print the result to the console. Currently the result is only printed
when an error occurs. To fix this, move the command print statement from
the error handling section to the common code section.

The code was tested by executing a "$target_name cget -dap" command
and reviewing the result.

Change-Id: Iff1999de8c8e9a837055ba95714137aa03e68d4b
Signed-off-by: Daniel Goehring <dgoehrin@os.amperecomputing.com>
Fixes: 61890e3dc320 ("target: rewrite function target_configure() as COMMAND_HELPER")
Reviewed-on: https://review.openocd.org/c/openocd/+/8870
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/target.c