From 3c1e5f987ee6fa60d485630776a7b353c34feded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sat, 23 May 2026 10:49:16 +0200 Subject: [PATCH] script: show drv/probe index in jtag_get_probes_list output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The probe ID printed by jtag_get_probes_list is the hex value to pass verbatim to jtag_open_probe (parsed as base 16), but reading "ID 0x00000000" and typing "1" as a 1-based index is a natural mistake — and jtag_open_probe will accept 1, fail with a misleading "FT_DEVICE_NOT_FOUND" since (drv=0, probe=1) does not exist. Append explicit [drv N, probe M] decomposition so the value to copy is unambiguous. Co-Authored-By: Claude Opus 4.7 --- modules/script/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/script/script.c b/modules/script/script.c index 5bb95c2..9a2d6ed 100644 --- a/modules/script/script.c +++ b/modules/script/script.c @@ -1751,7 +1751,7 @@ static int cmd_print_probes_list(script_ctx *ctx, char *line) while (i < nb_of_probes) { jtagcore_get_probe_name(jc, PROBE_ID(j, i), probe_list); - ctx->script_printf(ctx, MSG_INFO_0, "ID 0x%.8X : %s\n", PROBE_ID(j, i), probe_list); + ctx->script_printf(ctx, MSG_INFO_0, "ID 0x%.8X [drv %d, probe %d] %s\n", PROBE_ID(j, i), j, i, probe_list); i++; } j++;