From 09ac9ab135ed35c846bcec4f7d468c3656852f26 Mon Sep 17 00:00:00 2001 From: Leonard Crestez Date: Mon, 27 Jan 2020 20:10:30 +0200 Subject: jtag: Fix jtag_reset fallback The fallback provided for the jtag_reset command always fails with a strange message: 'Error: invalid command name "de"' This is caused by incorrect quoting inside the warning message. Fixes: c07b774e8f49 ("jtag: replace command "jtag_reset" with "adapter [de]assert"") Change-Id: Icd47fca2b5a7b33474bfb0040e88193a0968f301 Signed-off-by: Leonard Crestez Reviewed-on: http://openocd.zylin.com/5416 Tested-by: jenkins Reviewed-by: Antonio Borneo Reviewed-by: Tomas Vanek --- src/jtag/startup.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl index 2ac8571..e522e74 100644 --- a/src/jtag/startup.tcl +++ b/src/jtag/startup.tcl @@ -135,7 +135,7 @@ proc jtag_nsrst_assert_width args { } proc jtag_reset args { - echo "DEPRECATED! use 'adapter [de]assert' not 'jtag_reset'" + echo "DEPRECATED! use 'adapter \[de\]assert' not 'jtag_reset'" switch $args { "0 0" {eval adapter deassert trst deassert srst} -- cgit v1.1