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/syscnt.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/syscnt.c')
-rw-r--r-- | kern/syscnt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/syscnt.c b/kern/syscnt.c index e0b213d7..1fd3cf06 100644 --- a/kern/syscnt.c +++ b/kern/syscnt.c @@ -36,10 +36,12 @@ static struct mutex syscnt_lock; #ifdef CONFIG_SHELL static void -syscnt_shell_info(int argc, char **argv) +syscnt_shell_info(struct shell *shell, int argc, char **argv) { char *prefix; + (void)shell; + prefix = (argc >= 2) ? argv[1] : NULL; syscnt_info(prefix); } @@ -53,7 +55,7 @@ static struct shell_cmd syscnt_shell_cmds[] = { static int __init syscnt_setup_shell(void) { - SHELL_REGISTER_CMDS(syscnt_shell_cmds); + SHELL_REGISTER_CMDS(syscnt_shell_cmds, shell_get_main_cmd_set()); return 0; } |