]> git.sur5r.net Git - openocd/commitdiff
*SVF: help/usage updates
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 9 Jan 2010 04:16:05 +0000 (20:16 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 9 Jan 2010 04:16:05 +0000 (20:16 -0800)
Usage messages should use the same EBNF as the User's Guide;
no angle brackets.  Be more complete too ... some params were
missing.

Don't use "&function"; its name is its address.

Unrelated: fix typo in one "target.c" usage message.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/svf/svf.c
src/target/target.c
src/xsvf/xsvf.c

index dfdecbcd83c6c082c563d74f9853db66944deeaa..7cb220073f3d00ff246e9136dd352031cbacc386 100644 (file)
@@ -1461,10 +1461,10 @@ static int svf_run_command(struct command_context *cmd_ctx, char *cmd_str)
 static const struct command_registration svf_command_handlers[] = {
        {
                .name = "svf",
-               .handler = &handle_svf_command,
+               .handler = handle_svf_command,
                .mode = COMMAND_EXEC,
                .help = "Runs a SVF file.",
-               .usage = "<file>",
+               .usage = "filename ['quiet']",
        },
        COMMAND_REGISTRATION_DONE
 };
index c29c45e419e0cd211b59d3074aa016b85f5832cf..7994affa586b84d887e3379a2f924ee7d1170a67 100644 (file)
@@ -4916,7 +4916,7 @@ static const struct command_registration target_exec_command_handlers[] = {
                .handler = handle_virt2phys_command,
                .mode = COMMAND_ANY,
                .help = "translate a virtual address into a physical address",
-               .usage = "virual_address",
+               .usage = "virtual_address",
        },
        {
                .name = "reg",
index b1ddea9b64ffc4cf2c98cd06f6658507402be3f2..539fbdc6688365a0a1373b2f093550ba2a3f9aaf 100644 (file)
@@ -1053,13 +1053,13 @@ COMMAND_HANDLER(handle_xsvf_command)
 static const struct command_registration xsvf_command_handlers[] = {
        {
                .name = "xsvf",
-               .handler = &handle_xsvf_command,
+               .handler = handle_xsvf_command,
                .mode = COMMAND_EXEC,
                .help = "Runs a XSVF file.  If 'virt2' is given, xruntest "
                        "counts are interpreted as TCK cycles rather than "
                        "as microseconds.  Without the 'quiet' option, all "
                        "comments, retries, and mismatches will be reported.",
-               .usage = "<file> [virt2] [quiet]",
+               .usage = "(tapname|'plain') filename ['virt2'] ['quiet']",
        },
        COMMAND_REGISTRATION_DONE
 };