diff options
author | Richard Braun <rbraun@sceen.net> | 2018-07-25 01:16:24 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-07-25 01:16:24 +0200 |
commit | d3e43f5bfda0bdad7a829a7ed8c1272a395b196b (patch) | |
tree | 897e7851a995f243afdfa5999d786541781f56a9 /kern/log.c | |
parent | 3a175471f4246c429e89460ab42cd6640427532a (diff) |
kern/{fmt,shell}: update from upstream
The shell module has been "objectified" and now supports multiple
instances with shareable command sets.
Diffstat (limited to 'kern/log.c')
-rw-r--r-- | kern/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -380,11 +380,13 @@ log_dump(unsigned int level) } static void -log_shell_dump(int argc, char **argv) +log_shell_dump(struct shell *shell, int argc, char **argv) { unsigned int level; int ret; + (void)shell; + if (argc != 2) { level = log_print_level; } else { @@ -418,7 +420,7 @@ static struct shell_cmd log_shell_cmds[] = { static int __init log_setup_shell(void) { - SHELL_REGISTER_CMDS(log_shell_cmds); + SHELL_REGISTER_CMDS(log_shell_cmds, shell_get_main_cmd_set()); return 0; } |