Skip to content

Commit cea6fb7

Browse files
ehudmarvellnashif
authored andcommitted
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>
1 parent 3fe4c70 commit cea6fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/logging/log_cmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_log_stat,
441441
SHELL_CMD_ARG(disable, &dsub_module_name,
442442
"'log disable <module_0> .. <module_n>' disables logs in specified "
443443
"modules (all if no modules specified).",
444-
cmd_log_self_disable, 2, 255),
444+
cmd_log_self_disable, 1, 255),
445445
SHELL_CMD_ARG(enable, &dsub_severity_lvl,
446446
"'log enable <level> <module_0> ... <module_n>' enables logs up to"
447447
" given level in specified modules (all if no modules specified).",

0 commit comments

Comments
 (0)