This is an automated email from Gerrit.

"Paul Fertser <fercer...@gmail.com>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/7653

-- gerrit

commit b8c62e5965960536ceffe8dbf20922845fa3e1ce
Author: Paul Fertser <fercer...@gmail.com>
Date:   Tue May 2 15:10:11 2023 +0300

    jtag: tcl: change drscan usage to show at least one value is required
    
    It's customary to use [] brackets to mean the argument is optional, but
    drscan requires at least one pair of "num_bits value" so change it to ().
    In common regular expressions * means 0 or more, and + means 1 or more,
    so change that too.
    
    Signed-off-by: Paul Fertser <fercer...@gmail.com>
    Change-Id: Ib15d833bda2aa398ad1345a042f97d91c98dbf66

diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index 7d92dacd97..1f321e840b 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -277,7 +277,7 @@ static const struct command_registration 
jtag_command_handlers_to_move[] = {
                .jim_handler = jim_command_drscan,
                .help = "Execute Data Register (DR) scan for one TAP.  "
                        "Other TAPs must be in BYPASS mode.",
-               .usage = "tap_name [num_bits value]* ['-endstate' state_name]",
+               .usage = "tap_name (num_bits value)+ ['-endstate' state_name]",
        },
        {
                .name = "flush_count",

-- 

Reply via email to