shell: devmem: correct number of mand
and opt
of cmd_dump
According to the `SHELL_CMD_ARG` macro, the `mand` argument of `cmd_dump` should be 5, including the command name itself, `dump`. Meanwhile, the `opt` should be 2, as this value describes the optional field, which is [-w <width>]. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
parent
9023c27913
commit
93ee60fe87
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_devmem,
|
|||
SHELL_CMD_ARG(dump, NULL,
|
||||
"Usage:\n"
|
||||
"devmem dump -a <address> -s <size> [-w <width>]\n",
|
||||
cmd_dump, 4, 6),
|
||||
cmd_dump, 5, 2),
|
||||
SHELL_CMD_ARG(load, NULL,
|
||||
"Usage:\n"
|
||||
"devmem load [options] [address]\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue