forked from auracaster/openocd
flash: nor: keep Windows backslashes in flash list output
Wrap the name field in braces when formatting the flash list Tcl structure
so that Tcl does not interpret backslash escape sequences.
This ensures Windows paths are preserved verbatim in the output and
can be reliably matched in Tcl scripts.
Fixes: 80fc9fabc6 ("flash: nor: rewrite command 'flash list' as COMMAND_HANDLER")
Change-Id: Ibd0a4b292828f084122e4a02732dc69ac0885f3c
Signed-off-by: HAOUES Ahmed <ahmed.haoues@st.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9360
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
c60bb56bb6
commit
eea1bb4d30
@@ -1460,7 +1460,7 @@ COMMAND_HANDLER(handle_flash_list)
|
||||
for (struct flash_bank *p = flash_bank_list(); p; p = p->next) {
|
||||
command_print(CMD,
|
||||
"{\n"
|
||||
" name %s\n"
|
||||
" name {%s}\n"
|
||||
" driver %s\n"
|
||||
" base " TARGET_ADDR_FMT "\n"
|
||||
" size 0x%" PRIx32 "\n"
|
||||
|
||||
Reference in New Issue
Block a user