diff --git a/subsys/shell/modules/kernel_service/thread/list.c b/subsys/shell/modules/kernel_service/thread/list.c index b0a9304f8d6..7ecff5501bc 100644 --- a/subsys/shell/modules/kernel_service/thread/list.c +++ b/subsys/shell/modules/kernel_service/thread/list.c @@ -73,14 +73,14 @@ static void shell_tdata_dump(const struct k_thread *cthread, void *user_data) tname = k_thread_name_get(thread); shell_print(sh, "%s%p %-10s", - (thread == k_current_get()) ? "*" : " ", - thread, - tname ? tname : "NA"); + (thread == k_current_get()) ? "*" : " ", + thread, + tname ? tname : "NA"); /* Cannot use lld as it's less portable. */ shell_print(sh, "\toptions: 0x%x, priority: %d timeout: %" PRId64, - thread->base.user_options, - thread->base.prio, - (int64_t)thread->base.timeout.dticks); + thread->base.user_options, + thread->base.prio, + (int64_t)thread->base.timeout.dticks); shell_print(sh, "\tstate: %s, entry: %p", k_thread_state_str(thread, state_str, sizeof(state_str)), thread->entry.pEntry); diff --git a/subsys/shell/modules/kernel_service/thread/stacks.c b/subsys/shell/modules/kernel_service/thread/stacks.c index dc884516a5a..f11b7ef1f6b 100644 --- a/subsys/shell/modules/kernel_service/thread/stacks.c +++ b/subsys/shell/modules/kernel_service/thread/stacks.c @@ -41,10 +41,10 @@ static void shell_stack_dump(const struct k_thread *thread, void *user_data) /* Calculate the real size reserved for the stack */ pcnt = ((size - unused) * 100U) / size; - shell_print( - (const struct shell *)user_data, "%p %-" STRINGIFY(THREAD_MAX_NAM_LEN) "s " - "(real size %4zu):\tunused %4zu\tusage %4zu / %4zu (%2u %%)", - thread, tname ? tname : "NA", size, unused, size - unused, size, pcnt); + shell_print(sh, + "%p %-" STRINGIFY(THREAD_MAX_NAM_LEN) "s " + "(real size %4zu):\tunused %4zu\tusage %4zu / %4zu (%2u %%)", + thread, tname ? tname : "NA", size, unused, size - unused, size, pcnt); } K_KERNEL_STACK_ARRAY_DECLARE(z_interrupt_stacks, CONFIG_MP_MAX_NUM_CPUS,