shell: fix shell thread name

Each shell thread will have unique name.
Previously thread name "shell" has been created for each shell
backend.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
Jakub Rzeszutko 2018-11-19 13:24:25 +01:00 committed by Anas Nashif
commit 7d31796416
5 changed files with 12 additions and 10 deletions

View file

@ -435,6 +435,7 @@ struct shell {
LOG_INSTANCE_PTR_DECLARE(log);
const char *thread_name;
struct k_thread *thread;
k_thread_stack_t *stack;
};
@ -474,6 +475,7 @@ struct shell {
.stats = SHELL_STATS_PTR(_name), \
.log_backend = SHELL_LOG_BACKEND_PTR(_name), \
LOG_INSTANCE_PTR_INIT(log, shell, _name) \
.thread_name = STRINGIFY(_name), \
.thread = &_name##_thread, \
.stack = _name##_stack \
}