aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/rtos_nuttx_stackings.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2024-12-01 00:01:00 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2025-03-15 10:20:47 +0000
commit427528069806b20c05c78f935529bd62308351a9 (patch)
treee995b28378a655a540a884e66ad014fc353b6160 /src/rtos/rtos_nuttx_stackings.c
parent6beb6280af985e79094501af5cb66d1a33019544 (diff)
downloadriscv-openocd-427528069806b20c05c78f935529bd62308351a9.zip
riscv-openocd-427528069806b20c05c78f935529bd62308351a9.tar.gz
riscv-openocd-427528069806b20c05c78f935529bd62308351a9.tar.bz2
adapter: simplify command 'adapter list'
The code of command 'adapter list' is called by command 'adapter driver' to list the available drivers in case of error. This dual possible entry points require a conditional check on the number of command line arguments, reducing the code readability. Split the command in a simpler code for the command 'adapter list' that only checks the command line, and move in a common helper the code that list the drivers. While there, fix the output and the comments to report 'adapter driver' instead of 'debug adapters'; we are not parsing the HW to know which adapter is present. Change-Id: I17538e86dc4a31a9589d404e49dcc65a29393390 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8672 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/rtos/rtos_nuttx_stackings.c')
0 files changed, 0 insertions, 0 deletions