This is an automated email from Gerrit. "zapb <d...@zapb.de>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8636
-- gerrit commit 2b79c32c76c3f5f54811d1c07159fe3dcd8a482b Author: Marc Schink <d...@zapb.de> Date: Wed Dec 4 08:26:04 2024 +0100 target/arm_adiv5: print DAP name if not found If a DAP is not found, include its name in the error message. Change-Id: Icffc52894a1c5573f938b1f3e3b53441167f085e Signed-off-by: Marc Schink <d...@zapb.de> diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 0c7633beab..7a8866314b 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -2366,8 +2366,10 @@ static int adiv5_jim_spot_configure(struct jim_getopt_info *goi, if (e != JIM_OK) return e; dap = dap_instance_by_jim_obj(goi->interp, o_t); + const char *dap_name = Jim_GetString(o_t, NULL); if (!dap) { - Jim_SetResultString(goi->interp, "DAP name invalid!", -1); + Jim_SetResultFormatted(goi->interp, "DAP '%s' not found", + dap_name); return JIM_ERR; } if (*dap_p && *dap_p != dap) { --