logging: fix cmd_log_self_disable argc checker

according to the comment "all if no modules specified"
to support "all" state, set to 1 number of parameters.

Signed-off-by: Ehud Naim <ehudn@marvell.com>
This commit is contained in:
Ehud Naim 2020-11-04 00:23:56 +02:00 committed by Anas Nashif
commit cea6fb7753

View file

@ -441,7 +441,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_log_stat,
SHELL_CMD_ARG(disable, &dsub_module_name, SHELL_CMD_ARG(disable, &dsub_module_name,
"'log disable <module_0> .. <module_n>' disables logs in specified " "'log disable <module_0> .. <module_n>' disables logs in specified "
"modules (all if no modules specified).", "modules (all if no modules specified).",
cmd_log_self_disable, 2, 255), cmd_log_self_disable, 1, 255),
SHELL_CMD_ARG(enable, &dsub_severity_lvl, SHELL_CMD_ARG(enable, &dsub_severity_lvl,
"'log enable <level> <module_0> ... <module_n>' enables logs up to" "'log enable <level> <module_0> ... <module_n>' enables logs up to"
" given level in specified modules (all if no modules specified).", " given level in specified modules (all if no modules specified).",