summaryrefslogtreecommitdiff
path: root/kern/log.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
committerRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
commitd3e43f5bfda0bdad7a829a7ed8c1272a395b196b (patch)
tree897e7851a995f243afdfa5999d786541781f56a9 /kern/log.c
parent3a175471f4246c429e89460ab42cd6640427532a (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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/log.c b/kern/log.c
index 55578955..f20f966b 100644
--- a/kern/log.c
+++ b/kern/log.c
@@ -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;
}