summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/thread.c b/kern/thread.c
index a8f58b39..6625163a 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -2220,7 +2220,7 @@ thread_setup_runq(struct thread_runq *runq)
* tracing.
*/
static void
-thread_shell_trace(int argc, char *argv[])
+thread_shell_trace(struct shell *shell, int argc, char *argv[])
{
const char *task_name, *thread_name;
struct thread_runq *runq;
@@ -2229,6 +2229,8 @@ thread_shell_trace(int argc, char *argv[])
struct task *task;
int error;
+ (void)shell;
+
if (argc != 3) {
error = EINVAL;
goto error;
@@ -2278,7 +2280,7 @@ static struct shell_cmd thread_shell_cmds[] = {
static int __init
thread_setup_shell(void)
{
- SHELL_REGISTER_CMDS(thread_shell_cmds);
+ SHELL_REGISTER_CMDS(thread_shell_cmds, shell_get_main_cmd_set());
return 0;
}